SALAM all.
im trying to use localStorage for saving data in my mobile app. So i tried a code which i found it in sencha web site.
i create a store file and i put into it
and i create a form and put into it
Code:
{
xtype: 'button',
ui: 'round',
text: 'Calculate',
handler: function()
{
var store = new Ext.data.Store({
model: "Search"
});
store.add({query: 'Sencha Touch'});
store.add({query: 'Ext JS'});
store.sync();
Ext.Msg.alert("SALAM",store.load());
}
},
and when i execute it it shows me int the alert as result (Object object).
how can i use the local storage to save data in my app and how can i retreive this data later.
thank youuuuuuuuuuuuu