Results 1 to 3 of 3

Thread: Problem with empty $POST

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Baku, Azerbaijan
    Posts
    10
    Vote Rating
    0
      0  

    Default Answered: Problem with empty $POST

    Hello!

    I have problem, driving me crazy

    First it is an editable grid (plugins: [cellEditing],) with this store (store: sql,)

    Code:
     var sql = Ext.create('Ext.data.Store', {        model: 'SQL',
            groupField: 'project',
            proxy: {
                type:'ajax',
                api: {
                    read: 'data/showText.php', // Called when reading existing records
                    update: 'data/saveRollout.php' // Called when updating existing records
                },
                actionMethods: {
                    read   : 'GET',
                    update : 'POST'
                },
                reader: {
                    type: 'json',
                    root: 'data'
                },
                writer: {
                    type: 'json'
                }
            },
    
    
            autoSync: true,
            autoLoad: true
        });
    Everything going excellent until it POST to saveRollout.php JSON and a can see in Firebug that it really posts

    Code:
    {"projectId":0,"project":"","taskId":0,"description":"","january":0,"february":0,"march":10,"april":0,"may":0,"june":0,"july":0,"august":0,"september":0,"october":0,"november":0,"december":0,"id":null}
    But on server-side $_POST returns NULL. Where is my JSON? Please help.


  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,379
    Answers
    648
    Vote Rating
    858
      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Location
    Baku, Azerbaijan
    Posts
    10
    Vote Rating
    0
      0  

    Default

    Many thanks! I found my JSON :-) !!!

Tags for this Thread

Posting Permissions

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