View Full Version : Store with Ajax Proxy to json file

29 Jul 2013, 10:14 AM
Hi, I found seveeral examples where a json file is used to load objects into a store. It is supposed when altering the store contents using a grid as an editor, then when saving the store, store.save() or store.sync(), the proxy will upload an entire new file to be replaced at the http srever dide? So next time I do edits I see the changes into that file?

Thank, Carlos

29 Jul 2013, 3:06 PM
You need some kind of server side stack (PHP/ASP.NET/Java/Take your pick) to intercept the request and make the changes.

Typically, if an example serves a JSON file, in a real application you would replace it with a dynamic server side piece. The output would look the similar, but how it gets generated is quite different.

29 Jul 2013, 3:48 PM
Yes, I have sucha piece written in Java, Spring with annotations and Hibernate.

But I wanted to know if what I am asking was available, eitther by configuration or by some new proxy type.

This thrad can be closed now, thanks, Carlos