I have a cross domain request that requires the callback to be specified as follows
http://<server>:<port>/../../abc?_callback=<callbackName>
With jqGrid, I am not sure how to go about enabling this. jqGrid is a wrapper for the $.ajax call which takes in the url and also allows you to specify the crossdomain properties. My current configuration which provides the right response:
$("#list").jqGrid({
url:'<sample cross domain URL>',
callback: 'callme',
mtype: 'GET',
crossDomain: true,
datatype: 'jsonp',
jsonp: true,
cache: true,
....... // other grid properties to load the layout for this dynamic data.
)};
The line "callback: 'callme'" does not seem to work as firebug shows a default callback value assigned for the request. However this callback is specified as
<sample URL>?callback=jqueryXXX...X
instead of
<sampleURL>?_callback=callme
Is there any way in which jqGrid allows you to specify custom callback names?