Websites for sale:
Used Cars for Sale - $175 and Car Sale.
If interested drop me a line at ken@kensfi.com. Thanks!
Have questions about Toronto? Check my latest project: Ask about Toronto!
Javascript: onsubmit skipped
I did a small form for a payment gateway and needed onsubmit method, so I wrote one and test it. Tests failed in FF but worked in IE, no errors, nothing, only one thing: onsubmit method was skipped by JS Engine in FF.
My original code:
</form>
Error? Yeah, a return in front of some_method!
</form>
It’s an old trick, but some people(like me) still forget it :).
Why is return needed? Sends the return value to the browser, if it’s FALSE, nothing happens, if TRUE a submit is coming.
Related Posts
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
Please read before commenting:
I don't tolerate spam comments. Be human and polite. If you are signing as "Computer repairing", "iPhone store" or other kind of bullshits you'll be marked as spam.
USE YOUR NAME! Thanks!


Try using ajax / jquery functions to submit. http://plugins.jquery.com/ , http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/
Hope this help.