View Single Post
Old 01-31-2009, 05:17 PM   PM User | #5
jrmubbus
New to the CF scene

 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jrmubbus is an unknown quantity at this point
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".... />)
jrmubbus is offline   Reply With Quote