You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "marcus biel (innoWake gmbh)" <ma...@innowake.de> on 2006/06/06 13:50:07 UTC

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


RE: Reset Image Button

Posted by Sahil Gupta <sa...@netedgecomputing.com>.
Hi, 
Try using this as below, I have used this way in my project

<html:img src="btn_reset.gif" onclick="JavaScript:UploadResumeForm.reset();"
style="cursor:pointer" border="0"/> 


Regards,

Sahil Gupta
Extn : 339
Mobile: 91 9899468288
Email : sahil@netedgecomputing.com 
******************************************************************
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
******************************************************************
This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation. 



-----Original Message-----
From: marcus biel (innoWake gmbh) [mailto:marcus.biel@innowake.de] 
Sent: Tuesday, June 06, 2006 5:20 PM
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





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


How to create custom ActionMapper

Posted by Mukta <mu...@amsoft.net>.
I am working on URL cleaning in my struts web application. How can I create
a custom ActionMapper and how to use it?



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