0
When using this function by calling the filter parameter of an error, instead of returning the value of the Querystring parameter it returns a Function.
//Retorna os valores da querystring
function QueryString(pName)
{
//Cria as variaveis
var lQueryValue;
var lQueryString = location.search.replace(/\x3F/, "").replace(/\x2B/g, " ").split("&");
//Verifica se tem alguma query string
if (lQueryString != "")
{
//Cria o array
var lArray = [];
//Roda em todos os caracteres da querystring
for (var i = 0; i < lQueryString.length; i++)
{
//Quebra a query string
lQueryValue = lQueryString[i].split("=");
//Seta o valor do array
lArray[lQueryValue[0]] = unescape(lQueryValue[1]);
}
//Armazena o retorno
var lReturn = lArray[pName];
//Retorna
return lReturn;
}
return null
}
I found that this seems to be an array problem.
var lArray = [];
lArray['filter'];
Should return the Undefined value or the correct value, but returns the prototype string of the array filter function.
Does anyone have any tips on how to solve this problem ?
Is returning this value: Function filter() {[Native code]}
– Fabio Alves Francelino