What does JQuery do with randomly generated callback name for JSONP? -


so since ajax generates request

callback=jquery19104342058659531176 

and in end server returns

jquery19104342058659531176(data) 

what call if jquery19104342058659531176() function (obviously) not defined?

i understand go success/error handler, dont purpose of callback then?

in fact, jquery invoke callback, invoke success/error. if omit "jsonpcallback", jquery invoke default 1 deined jquery. source code in jsonp.js:

window[ callbackname ] = function() {     responsecontainer = arguments; }; 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -