I am using codeigniter with jqgrid to create a grid. It was working fine with jquery 1.3 until I updated jquery to 1.5.
Problem
I noticed a callback parameter appending to URL in all ajax calls and causing 404. All request URI are formatted in compliance of codeigniter standards(avoid using query strings) so I can understand 404.
jquery 1.5 documentation tells to do the following
{jsonp: false, jsonPCallback : "functionname"}
this stripped "?callback=jqueryXXXXXXXX_XXXXXX" from URI but jqGrid stops processing the data and hence resulting in empty grid.
What I want?
No query string should be attached to "url" and data should still be processed.
Example
jQuery(document).ready(function(){
jQuery("#grid").jqGrid({
url:'/healthcare/user/weight/get_full_report_data',
datatype: "json",
postData: {selected_week_id: "1"},
mtype: 'POST',
colNames:['Rank', 'Team', 'Total', 'Starting Weight', 'Lost(lbs)', 'Lost %', 'Department', 'Location', 'Reference1',
'Reference2']
)}
)};
Thanks in advance for any help.