profunctional
8 Jul 2010, 3:06 PM
I'm new to Ext and Senchatouch, and had some questions on best practices with data.
Right now, I'm using the Ext.Ajax.request to populate a NestedListed from a json string. Everytime I reload the card, it hits the server and queries for data which is not needed. In fact, I only need to populate the list once.
In jqTouch, I checked that the data wasn't already loaded before making an ajax request.
I was wondering what would be the best way to store this data client side, without actually using localstorage. Is there any way I could make an ajax request once, store it some type of object to be reused for that session? I'd also like the ability to sort this data/list as well.
What would be the best way to accomplish this?
Right now, I'm using the Ext.Ajax.request to populate a NestedListed from a json string. Everytime I reload the card, it hits the server and queries for data which is not needed. In fact, I only need to populate the list once.
In jqTouch, I checked that the data wasn't already loaded before making an ajax request.
I was wondering what would be the best way to store this data client side, without actually using localstorage. Is there any way I could make an ajax request once, store it some type of object to be reused for that session? I'd also like the ability to sort this data/list as well.
What would be the best way to accomplish this?