You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ravi Kora <rk...@1bigthink.com> on 2002/07/06 21:16:51 UTC
html:link and html:img combination
Hi,
I have a page where I want to combine my html:link and html:img tags. In
regular html, it would be something like this.
<a href="dummy.html"><img src="submit.gif" ></a>
I want to write the same thing using struts tags.On clicking the image,
I want to invoke a JavaScript function.So, I wrote my code like this.
<html:link onClick="func()" >
<html:img src="submit.gif" />
</html:link>
This code does not work.I am using Struts 1.0.2. Can someone please help
me with this?
Thanks & Regards,
Ravi Kora
rkora@1bigthink.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Problem with html:link and html:img
Posted by Ravi Kora <rk...@1bigthink.com>.
Yes, that is what I have tried. But it doesn't seem to work.
Regards,
Ravi Kora
-----Original Message-----
From: Nina-Annick Stranzenbach [mailto:nina.stranzenbach@sourcepark.net]
Sent: Monday, July 08, 2002 9:44 AM
To: 'Struts Users Mailing List'
Subject: Re: Problem with html:link and html:img
have you tried <html:link onclick="func()" >
<html:img src="submit.gif" />
</html:link> ?
On Mon, 2002-07-08 at 16:08, Ravi Kora wrote:
> Hi,
> I have a page where I want to combine my html:link and html:img tags.
> In regular html, it would be something like this. <a
> href="dummy.html"><img src="submit.gif" ></a>
>
> I want to write the same thing using struts tags.On clicking the
> image, I want to invoke a JavaScript function which eventually submits
> the form. So, I wrote my code like this. <html:link onClick="func()" >
> <html:img src="submit.gif" /> </html:link>
>
> This code does not work.I am using Struts 1.0.2. Can someone please
> help me with this?
>
>
> Thanks & Regards,
> Ravi Kora
> rkora@1bigthink.com
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problem with html:link and html:img
Posted by Nina-Annick Stranzenbach <ni...@sourcepark.net>.
have you tried <html:link onclick="func()" >
<html:img src="submit.gif" />
</html:link> ?
On Mon, 2002-07-08 at 16:08, Ravi Kora wrote:
> Hi,
> I have a page where I want to combine my html:link and html:img tags. In
> regular html, it would be something like this.
> <a href="dummy.html"><img src="submit.gif" ></a>
>
> I want to write the same thing using struts tags.On clicking the image,
> I want to invoke a JavaScript function which eventually submits the
> form. So, I wrote my code like this. <html:link onClick="func()" >
> <html:img src="submit.gif" />
> </html:link>
>
> This code does not work.I am using Struts 1.0.2. Can someone please help
> me with this?
>
>
> Thanks & Regards,
> Ravi Kora
> rkora@1bigthink.com
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Problem with html:link and html:img
Posted by Ravi Kora <rk...@1bigthink.com>.
Hi,
I have a page where I want to combine my html:link and html:img tags. In
regular html, it would be something like this.
<a href="dummy.html"><img src="submit.gif" ></a>
I want to write the same thing using struts tags.On clicking the image,
I want to invoke a JavaScript function which eventually submits the
form. So, I wrote my code like this. <html:link onClick="func()" >
<html:img src="submit.gif" />
</html:link>
This code does not work.I am using Struts 1.0.2. Can someone please help
me with this?
Thanks & Regards,
Ravi Kora
rkora@1bigthink.com
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>