Thanks, Susmita, but Vincent's brief suggestion was all I needed - had everything else in place. At least I started using vi again yesterday (have been using JDeveloper 9i beta for the past 4 months), so I don't feel like a total lamer....
Mark -----Original Message----- From: Susmita Pati [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 1:03 PM To: 'Struts Users Mailing List' Subject: RE: <html:form> submit weirdness Hi Mark Try this: function editpress() { var type = confirm("Are you sure you want to Complete the Order?"); if (type) { return true; } else { return false; } } and in the submit button <form:submit property="submit" value="Complete-Order" styleClass="ActionButton" onclick="return editpress()"/> -----Original Message----- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 12:50 PM To: Struts (E-mail) Subject: <html:form> submit weirdness 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>