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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -