-
1 Dec 2011 1:38 PM #1
Sync ajax store to offline site
Sync ajax store to offline site
Hello I am trying to sync my ajax store to my localStorage. I can see that the key gets set but I can't load any data.
Code:onLaunch: function() { languageStore = this.getLanguageStoreStore(); languageStore.load({ scope : this, callback: function(records, operation, success) { var newPunchStore = Ext.create('Ext.data.Store', { model: 'myApp.model.LanguageModel', storeId: 'myOffline', proxy: { type: 'localstorage', id: 'hopethisworks', reader: { root: 'data', idProperty: 'ID', successProperty: 'result', } } }); newPunchStore.load(languageStore); newPunchStore.sync(); } }) },
-
2 Dec 2011 7:36 AM #2
PR2 bugs???
PR2 bugs???
Ok, I just tried the exact example from:
http://docs.sencha.com/touch/2-0/#!/...y.LocalStorage
and I'm getting the same results. Wondering if PR2 has issues with this?
-
3 Dec 2011 3:42 PM #3
Yup, sorry. There is a bug for this already opening for PR2. It will be fixed before GA.
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.


Reply With Quote