Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-881 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    6
    Vote Rating
    0
    rma4ok is on a distinguished road

      0  

    Default Form submitting bug

    Form submitting bug


    http://docs.sencha.com/touch/2-0/#!/...rms/index.html

    When I click "Save" I expect
    console.log('success', Ext.toArray(arguments));

    Instead I get
    • Uncaught TypeError: Cannot call method 'unmask' of undefined
      • Ext.define.hideMask sencha-touch-all.js:15
      • Ext.Ajax.request.callback
      • Ext.apply.callback
      • Ext.define.onComplete
      • Ext.define.onStateChange
      • (anonymous function)

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Looks like a bug in the example, thank you for the report.

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    6
    Vote Rating
    0
    rma4ok is on a distinguished road

      0  

    Default This is a bug in sencha

    This is a bug in sencha


    The same code works if I use sencha touch 1 instead.
    And error dissapear if I remove
    Code:
    waitMsg : {message:'Submitting', cls : 'demos-loading'}


    But the real problem is the next.
    Code:
    submit: function(form, result) {
      alert('come on');
      console.log('success', Ext.toArray(arguments));
    },
    exception: function(form, result) {
      console.log('failure', Ext.toArray(arguments));
    }
    submit listener never works
    success listener doesn't work ether. I can't catch 200 response from the server.

Thread Participants: 1

Tags for this Thread