The short question is...
I have a BasicDialog which element is a form. I want to trigger submit() in the form without using AJAX, and I have no clue which element to use to call submit().
The long question is...
I have some auto-created dialogs which element is a form:
autoCreate: {tag:'form', method:'post', action:'...', name: '...'}
And it is all ok to handle AJAX submissions et al, but guess what, now I can't find a way to submit a form using these dialogs without being async. I've added a 'preventAsync' property to my dialogs to submit the form in the old way and avoid starting the async process:
Code:
this.okBtn = this.addButton('OK', this.ok, this);
...
ok: function() {
if(this.preventAsync) {
this.el.submit();
//this.el.dom.submit();
//this.el.dom.form.submit();
return;
}
...
}
But I'm really in doubt about what element to use to trigger submit(). I've been trying for a couple of hours to get this simple thing working... so any clues would make me happy. :-)