|
I'm running into the same thing. Initially ajax fires the form. The result could be the same form (eg: pwd is invalid). If the result is the same form THEN submitting form is NOT handled via ajax but acts like a typical form submit targeting the page (page reloads). I'm an ajax / mootools noob. Simplified code looks like this...
$('form_changepwd').addEvent('submit', function(e) {
e.stop();
this.set('send', { onComplete: function(response) {
$('container_div').set('html', response);
}});
this.send();
});
My form has a submit btn (<input type="submit".... />)
|