Jquery JQGrid trigger reloadGrid
- by JK
I'm using a jqgrid to display the results of a search. When the search button is clicked it does this:
$("#Search").jqGrid('setGridParam', { url: url }).trigger("reloadGrid");
Where url contains the search params eg:
var url ="/search?first=joe&last=smith"
The web server is receiving this url and responding appropriately. But on the client side it throws this error in jqgrid.min.js line 21:
Syntax error:
}); b.fn.jqGrid = function(f) {
What can I do to fix this? I'm using jqgrid sucessfully in many other places, but this is the only one where I'm changing the url and reloading.