javascript - ReferenceError: jsonp not defined -
so making ajax request in jquery this:
$.ajax({ url: url, datatype: "jsonp", jsonpcallback: 'callback', success: function(data) { alert(data.success); } }); this want receive url:
jsonp({ "success": true, } ) but keep getting error - referenceerror: jsonp not defined
what doing wrong ?
thanks.
p.s: testing on ff
after whie got solution: instead of setting jsoncallback : "callback" changed to
jsoncallback: "jsonp" because default callback proxy returns.
Comments
Post a Comment