O'Reilly logo

Ext JS Essentials 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

Getting data into your application

So far, we have only dealt with hard-coded data and not with real-world examples of loading and saving data from/to external sources, whether they are REST endpoints, local databases, or third party APIs. Ext JS supports a number of different ways of assisting with data loading and persistence, including AJAX and LocalStorage.

Ext.Ajax

Although only indirectly related to stores, we are first going to discuss AJAX requests in a more general sense and how we can perform them to make calls to a server backend.

Ext.Ajax is a singleton instance of the Ext.data.Connection class, which provides us with a very simple interface for making AJAX calls to a server and handling the response. We will primarily focus on the ...

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