I found this forum thread in google, but no one here seems to encounter the same problem, so I would like to know if onsubmit=’return false;’ really fails in some IE7 browsers, meaning that it has become an unreliable method of preventing direct post back in an ajax form since the release of IE7, so we need to be very careful about using it?
Share
Well, in the forum thread, I think he got the problem wrong in the first place.
return falseshould prevent the direct submit, you do your validation and then you do the real submit.Usually you go like this :
and in your function :
Now, using jQuery, is more clear as you can have everything in the
<script>tag.