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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -