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.
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 ...