struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samere, Adam J" <asam...@paychex.com>
Subject RE: Reset Image Button
Date Tue, 06 Jun 2006 12:03:35 GMT
You may just need to return false after calling reset.
onclick="document.MyForm.reset(); return false;" 
 
Or just use a standard img or the html:img tag instead of html:image

-----Original Message-----
From: marcus biel (innoWake gmbh) [mailto:marcus.biel@innowake.de] 
Sent: Tuesday, June 06, 2006 7:50 AM
To: Struts Users Mailing List
Subject: Reset Image Button

Is there a way to create an image button that IS a reset button?

I tried this:
<html:image src="reset.gif" onclick="document.MyForm.reset()" />

and this:
<html:reset><html:image src="reset.gif"
onclick="document.MyForm.reset()" /></html:reset>

But unfortunately, it didn't work! :-(

Marcus


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


-----------------------------------------
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


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


Mime
View raw message