Dilated Posted July 8, 2010 Share Posted July 8, 2010 I have an ajax form on my site, it uses onsubmit to override the default submit function. i.e. <form action="index.php" method="post" onsubmit="ajax('etc'); return false;"> It works properly about half of the time. Half of the time the ajax function will be called and the default submit function won't, and for the other half the ajax function gets called like it should, but the default submit function gets called as well and the form acts as if it were a regular form. Has anyone experienced this problem before?BTW, I'm using the latest version of Firefox. Link to comment Share on other sites More sharing options...
chibineku Posted July 8, 2010 Share Posted July 8, 2010 I don't know if it makes any difference, but I usually return false at the end of the function I'm calling on an event. Link to comment Share on other sites More sharing options...
Dilated Posted July 8, 2010 Author Share Posted July 8, 2010 I don't know if it makes any difference, but I usually return false at the end of the function I'm calling on an event.Hmm, it does seem to make a difference. It seems to be working properly so far.Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.