1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Baku, Azerbaijan
    Posts
    10
    Vote Rating
    0
    Julia_Rakitina is on a distinguished road

      0  

    Default Answered: Problem with empty $POST

    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
    17,046
    Vote Rating
    657
    Answers
    471
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      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
    Julia_Rakitina is on a distinguished road

      0  

    Default


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

Thread Participants: 1

Tags for this Thread