PDA

View Full Version : Data in model



Voles
24 Mar 2011, 2:45 AM
Hi all!

With an AJAX-request, I fetch data from a user in JSON-format. Now I want to save that data to use it later in my application.

Do I have to make a store for this? Or just models?

Thanks a lot!

jay@moduscreate.com
24 Mar 2011, 4:36 AM
how are you fetching that data? If you're using Ext.Ajax.request, you can use it to PUT or POST the data back to the server.

Voles
24 Mar 2011, 4:51 AM
Thx for your reply!

I'm fetching the data with Ext.Ajax.request and want to store it, so I can display it on other pages. I thought to put it into a model / store so I can retrieve it on any page.

But I'm not sure where to start with...

Thanks in advance!

jay@moduscreate.com
24 Mar 2011, 5:05 AM
What do you mean by "page"?

Voles
24 Mar 2011, 5:06 AM
Other Panels in the application where I want to show data.