I am following this example to get JSONP data from remote server. jQuery append its own callback function while sending request like
http://url.com?callback=jQuery17107389513931702822_1332765044455&_=1332765051700
But the source is replying JSONP data in a fixed format as REPYL$queryString({“data”:”abc”}) where queryString is the string for which reply is generated.
How to customize the options to support my own callback name? The error which I am getting right now is
Uncaught ReferenceError: REPLY$querystring is not defined.
UPDATE
setting which worked for me are:
jsonp:false,
jsonpCallback:"CALL_BACK_NAME",
Use the
jsonpsetting in the.ajaxrequest of the example you are using:jsonp
See the
.ajaxdocumentation