Get Querry String Values
Get Querry String Values
function GetQueryStringParams(sParam) {
var sPageURL = window.location.search.substring(1);
return sParameterName = decodeURIComponent(sPageURL.split("=")[1]);
}
Usage:
var queryStringVals = GetQueryStringParams("PName");
var NavUrlqryParameter = encodeURIComponent(queryStringVals);
var qryParameter = CorrectStringAsSPData(queryStringVals);
function GetQueryStringParams(sParam) {
var sPageURL = window.location.search.substring(1);
return sParameterName = decodeURIComponent(sPageURL.split("=")[1]);
}
Usage:
var queryStringVals = GetQueryStringParams("PName");
var NavUrlqryParameter = encodeURIComponent(queryStringVals);
var qryParameter = CorrectStringAsSPData(queryStringVals);
Comments