[thelist] javascript: Form validation error?

AtdtXav atdtxav at yahoo.com
Sat Jun 8 14:00:01 CDT 2002


Thanks, Jeff :)  I discovered my problem was actually a loose
<script> tag, which caused the actual <script> to burp.

Thanks for the link. ;)  That's what happens when you have to
work with someone else's code.

Scott

--- ".jeff" <jeff at members.evolt.org> wrote:
> scott,
>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: AtdtXav
> >
> > What's wrong with this picture?
> >
> > [snip]
> >
> > <FORM enctype="multipart/form-data"
> >       name="fform"
> >       action="/servlet/UploadProcess"
> >       method="post"
> >       onsubmit="return checkform(this);">
> >
> > // details of form
> >
> > <input
> >  type="image"
> >  name="SubmitUpload"
> >  src="/images/submit.gif"
> >  hspace="0"
> >  vspace="0"
> >  border="0"
> >  onClick='submit();'>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> remove the onclick event handler from your image submit.  the
> submit()
> method causes the form to be submitted without firing the
> onsubmit event
> handler in the <form> tag.  what's more, the onclick event
> handler is not
> supported by some browsers.
>
> here's an article with more info on the submit() method.
>
> Forms & JavaScript Living Together in Harmony
> http://evolt.org/article/thelist/17/28553/
>
> good luck,
>
> .jeff
>
> http://evolt.org/
> jeff at members.evolt.org
> http://members.evolt.org/jeff/
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the thelist mailing list