You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by xianwinwin <xi...@gmail.com> on 2008/04/18 22:18:48 UTC

how to replace a button (ajax) with a simple link?

I have the following button-action:

<s:form action="test_exitForm"  method="post" validate="false" >       

	<s:submit type="image" src="images/exit22.png" action="test_exitForm"
theme="ajax" targets="id_close" showLoadingText="false"
indicator="loadingImage"/>		    	   	   
</s:form>

this button, when clicked, does some action (removes a form from the screen)

I would like to 'convert' the button (the image-button)  into a simple link:
close-form (so the user actually clicks the link and not the button) 

does anyone have any idea how to do that? put in mind that the 'targets' is
important.

Thank you!
-- 
View this message in context: http://www.nabble.com/how-to-replace-a-button-%28ajax%29-with-a-simple-link--tp16765006p16765006.html
Sent from the Struts - User mailing list archive at Nabble.com.


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