PDA

View Full Version : [FIXED] Form submitting bug



rma4ok
15 Oct 2011, 4:29 PM
http://docs.sencha.com/touch/2-0/#!/example/forms/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 (http://docs.sencha.com/touch/2-0/touch/sencha-touch-all.js)
Ext.Ajax.request.callback
Ext.apply.callback
Ext.define.onComplete
Ext.define.onStateChange
(anonymous function)

Jamie Avins
17 Oct 2011, 8:30 AM
Looks like a bug in the example, thank you for the report.

rma4ok
17 Oct 2011, 3:04 PM
The same code works if I use sencha touch 1 instead.
And error dissapear if I remove

waitMsg : {message:'Submitting', cls : 'demos-loading'}



But the real problem is the next.

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.