Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass parameter from one dashboard to another via openDoc url
#1
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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)