struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: <html:form> submit weirdness
Date Sat, 01 Jun 2002 12:41:23 GMT
It may be related to the old issue of the default name for the submit
button being "SUBMIT", which tends to confuse the onsubmit event. 

"Galbreath, Mark" wrote:
> 
> That did the trick, dude!  Thanks - been a few years since I've done
> HTML/JavaScript stuff (have to now - no web page designers in our dev
> group).  I still wonder why the <html:form ... onsubmit="return validate()">
> doesn't work - it should.  Struts bug?
> 
> Mark
> 
> -----Original Message-----
> From: Vincent Aumont [mailto:vincent.aumont@vsl.ca]
> Sent: Friday, May 31, 2002 1:00 PM
> 
> try:
> 
> onclick="return validate()"
> 
> -vincent.
> 
> "Galbreath, Mark" wrote:
> 
> > Anybody have/had any issues with <html:form> submitting using client-side
> > (JavaScript) validation?  I've tried everything from onsubmit="return
> > validate()" as a form parameter to onclick="validate()" on the input image
> > (using both HTML <input /> and <html:image>) and though the JavaScript
> > function is called, the correct conditional is entered with its
> > corresponding alert(), the form submits even though "false" is returned.
> > This is a major PITA!
> >
> > If you've encountered this, what workaround, if any, did you implement?
> >
> > Thanks (only 5 hours 'till black and tan [Bass Pale Ale + Guinness]
> time!),
> > Mark
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message