Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,650
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default [FIXED-EXTJSIV-198] DirectSubmit not sending data

    [FIXED-EXTJSIV-198] DirectSubmit not sending data


    I have checked this with the online form example

    http://dev.sencha.com/deploy/ext-4.0...rect-form.html

    If you press submit and look at the request, you will get this:

    Code:
    {
        "action": "Profile",
        "method": "updateBasicInfo",
        "data": [
            undefined,
            null
        ],
        "type": "rpc",
        "tid": 5
    }
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,170
    Vote Rating
    674
    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  

    Default


    Will be fixed in the next release.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    32
    Vote Rating
    1
    rhapsodyv is on a distinguished road

      0  

    Exclamation DirectSubmit with ExtJS 4.1 Beta 2

    DirectSubmit with ExtJS 4.1 Beta 2


    This error is happening for me in version extjs 4 beta 2.

    I think I discovered part of the problem:

    DirectSubmit.js:
    PHP Code:
        doSubmit: function() {        
    var 
    me this,           
     
    callback Ext.Function.bind(me.onCompleteme),   
             
    formEl me.buildForm();   
         
    me.form.api.submit(formElcallbackme); 
    It's tries send a form element but Connect.js don't detects it as a form upload:
    PHP Code:
       isFormUpload: function(options) { 
    var 
    form this.getForm(options);     
       if (
    form) {            
    return (
    options.isUpload || (/multipart\/form-data/i).test(form.getAttribute('enctype')));        }        return false;    
    }, 
    So, it tries to encode the form element like a simple json object but it can't do it, so I get undefined in data field:
    PHP Code:
    {"action":"Site","method":"login","data":[undefined],"type":"rpc","tid":1
    For now, I just changed me.buildForm() to me.getParams(). It's working fine because I don't need upload anything now, but it's just an workaround.

    Thanks

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    32
    Vote Rating
    1
    rhapsodyv is on a distinguished road

      0  

    Default


    Just forget... My action didn't have the param formHandler...

    It could be more clear in the DirectSubmit documentation. Thanks. All working now.

    []s
    Victor

Similar Threads

  1. Replies: 5
    Last Post: 6 Apr 2012, 1:38 AM
  2. [FIXED-EXTJSIV-191] Component.js typos
    By LesJ in forum Ext:Bugs
    Replies: 1
    Last Post: 21 Mar 2011, 3:12 PM
  3. Replies: 1
    Last Post: 17 Mar 2011, 4:21 PM
  4. Sending data
    By oasisjoel in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 3 May 2009, 6:08 PM
  5. Issue with sending data
    By border9 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 30 Oct 2008, 8:50 AM

Thread Participants: 2