Details
-
Task
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
Description
JSONP functionality has poor support for error handling. This is a known issue with JSONP, and has to do with how JSONP requests are sent to the server using <script> tags. In the case of a validation issue, or error the success callback will not be thrown, and most client libraries (specifically jquery) will not be able to call the error callback either. There are some workarounds and options, but typically they are limited.
We should have an example that show how to handle these this situation using some of the suggestions for various client libs.
- http://designwithpc.com/post/11989720389/jsonp-error-handling-with-jquery-ajax
- http://code.google.com/p/jquery-jsonp/
- Google it, there are lots of approaches.