My jQuery is below:
var x = $.ajax({ dataType: "jsonp", url: "https://ajax.googleapis.com/ajax/services/search/images?q=google&v=1.0", success: function(msg){ alert( "Jsonp data: " + msg ); } }); alert(x);
You can try this code here: http://jsbin.com/iyile3/2/edit
I want to stop this ajax request and stop this successful ajax request function.
But I get that "x" is undefined, I think I am not stopping this ajax request and its success function.
So can someone help me?
Many thanks!
jquery jsonp ajax abort
rqqfccsa
source share