Forums

Full Version: Pass parameter from one dashboard to another via openDoc url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
function getParam(name,url)
{
if(!url)url = location.href;
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec(url);
if( results == null )
return "";
else
return results[1];
}
var Years = getParam("Year",referrer);
alert(Years);