----- Original Message ----- From: "Bruce Sorge" <[EMAIL PROTECTED]> > Say, > I have this enter image that looks like this: > <a href="javascript:document.ViewerInfo.submit();"><img src="images/EnterButton.gif" border="0"> > > What I want to do is to also be able to call my form validation JavaScript when the user submits the form. I tried using an onSubmit routine in the Form tag, but that is not working. Any thoughs on this?
Instead of using an href, why not make the image be an ACTUAL submit button? <input type="image" src="images/EnterButton.gif" /> I believe is all you'd need. (of course, you may need other attributes in there, but I'm not positive on that) That would act as a submit button by default and should fire the onsubmit routine. Scott ------------------------------------------- Scott Brady http://www.scottbrady.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4