Can you please help me to get custom parameters in the URL?
I am appending parameters to the URL like this:
http://project.tiggzi.com/mobile-fram...
When I reference window.location, my custom parameters have been stripped out. Please let me know how I tweak the following function to access my custom parameters.
Thanks!
Dave
function getParameterByName(name)
{
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexString = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexString);
var found = regex.exec(window.location.search);
if(found == null)
return "";
else
return decodeURIComponent(found[1].replace(/\+/g, " "));
}