When you have pageing enabled in sharepoint list, when you click next button in pagging u lost the query string. this error can be resolved by using below Java Script in javascript above the ListView
<script language="JavaScript">
function getQueryVariable(varname) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
{
var pair = vars[i].split("=");
if (pair[0] == varname)
{
return pair[1];
}
}
}
function SubmitFormPost1(cmd, varname)
{
//alert(getQueryVariable(varname));
SubmitFormPost(cmd.split("?")[0] + "?" + varname + "=" + getQueryVariable(varname) + "&" + cmd.split("?")[1]);
}
</script>
Monday, June 15, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment