PDA

View Full Version : Get the data returned on store.sync()



zerkms
13 May 2012, 2:03 PM
I use ajax-proxy for store and server returns some useful data on the sync() operation.

What is the *correct* way of retrieving the data server returned on the ajax request (that has been sent via sync() operation)?

sasklacz
13 May 2012, 4:51 PM
What do you want to do with this data ? Modify it or just read ? If the latter - I'd go for adding http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Ajax-event-requestcomplete event listener.

zerkms
13 May 2012, 6:12 PM
And how do I bind to that ajax event? I don't have access to ajax object, I only interact with store