PDA

View Full Version : Why won't my form submit?



samwalker121
5 May 2009, 2:53 PM
Here is the snippet:

buttons: [
{
text: 'Submit',

handler: function () {
app.elements.grid.commitChanges(app.elements.mainWindow.getForm());
action = 'test.php';
method = 'POST';
this.getForm().submit();

}
}
]

Thanks! :)

666ragez666
5 May 2009, 8:00 PM
buttons: [{
text: 'Submit',

handler: function() {
app.elements.grid.commitChanges(app.elements.mainWindow.getForm());
action = 'test.php';
method = 'POST';
this.getForm().submit();

},
scope: this
}]might be a scope issue.
Also just a remark, could you please format your code properly next time, see the forum help (http://extjs.com/learn/Ext_Forum_Help#How_to_post_code_properly).