<snip>
<a onclick ??? (What goes here) ????
</snip>
JavaScript goes here.

<snip>
I don't want to use Javascript,
</snip>
Um. I think you might be getting a little confused.

<snip>
I think I might be confused... :-/
</snip>
Yes, didnt I just say that?

hehe sorry, couldnt resist ;->

Sounds like what your after is the <input type="image... tag (in struts you
can use <html:image...)
html:
http://webdesign.about.com/library/tags/bltags-inputimage.htm
struts tag:
http://jakarta.apache.org/struts/userGuide/struts-html.html#image

You will still need javascript to do the mouseover effects of course, but it
should degrade ok for users without js (they will still be able to click it
to submit).

hth
Andrew


-----Original Message-----
From: Leticia Golubov [mailto:[EMAIL PROTECTED]
Sent: Monday, 19 January 2004 19:20
To: Struts User Mailing List
Subject: html:form/Submit question....


I have a form and my plan is to set all the fields (using DynaActionForm)
when an ok 'button' is pressed, the problem is, I'm not using a 'submit'
action to submit it, but an image, the code I have at the moment is:

<html:form action="/addNewScope">

..... lots of other code here

<a onclick ??? (What goes here) ????
    onMouseOver="SwapImage('ok','../../images/button_ok_over.png');"
    onMouseDown="SwapImage('ok','../../images/button_ok_click.png');"
    onMouseOut="SwapImage('ok','../../images/button_ok.png');"
    onMouseUp="SwapImage('ok','../../images/button_ok_over.png');">
    <img name="ok" src="../../images/button_ok.png" border="0" width="42"
height="23">
</a>

..... more code here

</html:form>

basically, I want the action in the form (addNewScope) to be submited when I
do onclick (where the question marks are).  I don't want to use Javascript,
I want call the action...  I have done this before using <html:submit> but
this is not what I'm trying to achieve here.

I think I might be confused... :-/

regards

Leticia


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to