Jquery JQGrid trigger reloadGrid

Posted by JK on Stack Overflow See other posts from Stack Overflow or by JK
Published on 2010-05-25T02:23:41Z Indexed on 2010/05/25 2:31 UTC
Read the original article Hit count: 1689

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins