Results 1 to 2 of 2

Thread: Ext.data.Store server communication

  1. #1
    Ext User
    Join Date
    Mar 2010
    Posts
    3
    Vote Rating
    0
      0  

    Question Ext.data.Store server communication

    Hi,

    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!

    Steve

  2. #2
    Ext User
    Join Date
    Mar 2010
    Posts
    3
    Vote Rating
    0
      0  

    Default SOLUTION:

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •