You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kiet Nguyen <KN...@coolcast.com> on 2001/12/08 20:41:49 UTC

strut help

Please help.  I'm in a dead-end.

I need to write the submit button with an image and a pop-up dialog and it
will work under
netscape 4.7 & IE & net6 when the browser is set "never check for new
version for page" as the caching technique.  I use javascript to submit the
form, but when caching is set, the form doesn't get submit.

Javascript:
function send(msgAction)
{	document.forms[0].action = msgAction;
	document.forms[0].submit();
}

<a href="" onClick="send('logon.do'); return false"> <img
scr="image.gif"></a>






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: strut help

Posted by Yee Keat <yk...@netwxs.com.my>.
On Sunday 09 December 2001 03:41 am, you wrote:

try this

<a href="javascript:send('logon.do');"> <img scr="image.gif"></a>

As far as I know, this solve my problem on netscape 4.x, in IE, Mozilla and 
Opera your version works fine.

> Please help.  I'm in a dead-end.
>
> I need to write the submit button with an image and a pop-up dialog and it
> will work under
> netscape 4.7 & IE & net6 when the browser is set "never check for new
> version for page" as the caching technique.  I use javascript to submit the
> form, but when caching is set, the form doesn't get submit.
>
> Javascript:
> function send(msgAction)
> {	document.forms[0].action = msgAction;
> 	document.forms[0].submit();
> }
>
> <a href="" onClick="send('logon.do'); return false"> <img
> scr="image.gif"></a>

-- 
Cheers,

Yee Keat

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>