JQuery: catching jsonp 400 Bad Request?

Jsopn is not regular ajax request, it actually creates a script tag in your DOM that's the reason jsonp response data is in format abc_FunctionName(data) and you gat get data directly into that function. But jQuery does that for you automatcally so you never come across that part To handle jsonp errors use this pluggin code.google.com/p/jquery-jsonp.

Jsopn is not regular ajax request, it actually creates a script tag in your DOM that's the reason jsonp response data is in format abc_FunctionName(data), and you gat get data directly into that function. But jQuery does that for you automatcally so you never come across that part. To handle jsonp errors use this pluggin code.google.com/p/jquery-jsonp.

JSONP is not like regular AJAX requests it uses a script tag to get the content. That being said, jQuery should be able to catch an error like 400 and its strange that its not. You may want to add a timeout in your ajax config object: jsfiddle.net/pLuPb/18/ You could also do something like your own JSONP handler: jsfiddle.net/6j6uk/ (not sure about X-Browser support).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions