[thelist] Submitting a form with javascript
Jeff Howden
jeff at jeffhowden.com
Mon Nov 3 02:59:11 CST 2003
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: John Corry
>
> A form object's submit() method will not work if the
> form has an input named 'submit'.
>
> Change the name of the submit button and you've got it.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
<tip type="JavaScript" author=".jeff">
the submit() method is the lazy developer's way out of doing something the
right way. never use it. instead, consider an alternate means of
submitting the form, like say, including a submit button that *everyone* can
use.
</tip>
<tip type="JavaScript" author=".jeff">
beware of the submit() method. it won't cause the onsubmit event handler to
fire.
</tip>
.jeff
------------------------------------------------------
Jeff Howden - Web Application Specialist
Resume - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/
More information about the thelist
mailing list