View Full Version : Ext.data.Store server communication

28 Mar 2010, 10:51 AM

I am using a grid panel which gets its data from a php file on the server via JSON. Therfore I crated a HttpProxy (proxy: new Ext.data.HttpProxy({ url:...). Works fine.

My problem is the way back. When my handler calls the remove function of my datastore, EXT is calling my HttpProxy URL automatically. Via Firebug I can see that this happens with POST method and with some JSON code. Unfortunately I don't know how to process this data in my php file since the $_POST variable is empty. I couldn't find any examples.

Please help me! :((


30 Mar 2010, 2:10 PM
I just needed to set encode:true within the JsonWriter object. By doing so Ext is sending POST data instead of JSON code to the given url.

Hope this will help someone.