My variables:
var strArgsString = "?Category=Customer&Year=2014";
var intModuleNo = "2";
var strOrigDashName = "Invoices"
My AJAX Post:
var jqxhr = $.post("includes/saveParameters.asp?dname="+strOrigDashName+"&mod="+intModuleNo+"&args='"+strArgsString+"'", function() {
alert("success");
})
.fail(function() {
alert("error");
});
It returns a fail because the "args" value is treated as a continuation of the full query string. Im sure there will be many ways to do this but how can i get "?Category=Customer&Year=2014" treated as a string on my .asp file?
At the moment I have these
strDashboardName = Request.QueryString("dname")
intModuleNumber = Request.QueryString("mod")
strParamsArgString = Request.QueryString("args")
Any solution appreciated, but preferance given to the most efficient, thanks.