[thelist] Having a Javascript "document.submit" Error

Diego Barcia webmaster at sci-web.com.ar
Thu Jan 30 08:27:02 CST 2003


.jeff,

>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Diego Barcia
> >
> > You don't really need JavaScript to submit forms, except
> > when you need to avoid the form beeing submitted
> > (checking forms fields, etc).
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> not true at all.  simply use the onsubmit event handler and you can halt
any
> form submission you want.
>
> once again:
>
> Forms & JavaScript Living Together in Harmony
> http://evolt.org/article/thelist/17/28553/
>

Ok, I did read the article before. Sorry I wasn't clear enough. Just wanted
to be brief by saying that javascript code was'nt necessary there. I meant
you don't need javascript code to submit any form; and in the case you do
write form checking code, you can access the form submission event with
event registration within the code (traditional model) or it is also
possible to do it in the old-fashioned way with event registration in the
html element, without replacing the <input type="submit" etc> button in any
case.

db






More information about the thelist mailing list