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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -