O'Reilly logo

Ext JS 4 Web Application Development Cookbook by Stuart Ashworth, Andrew Duncan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling exception and callbacks

This recipe demonstrates how to handle callbacks when loading and submitting forms. This is particularly useful for two reasons:

  • You may wish to carry our further processing once the form has been submitted (for example, display a thank you message to the user)
  • In the unfortunate event when the submission fails, it's good to be ready and inform the user something has gone wrong and perhaps perform extra processing

The recipe shows you what to do in the following circumstances:

  • The server responds informing you the submission was successful
  • The server responds with an unusual status code (for example, 404, 500, and so on)
  • The server responds informing you the submission was unsuccessful (for example, there was a problem ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required