Hi Kamesh,
Yes, I want to do the same thing!!!!
Thanks a lot for your help and the example code.
I am able to pass the column value to a javascript now.
Thanks and Regards,
Amol
________________________________
From: Kamesh Rao [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 01, 2007 5:30 PM
To: [email protected]
Cc: Amol_Ambekar
Subject: Re: [displaytag-user] using javascript with display:table tag
Hi Amol,
If you require to show the column as link or a button or something
else and on click of it pass the value of the column or any other
column of the row being iterated to the javascript function then this is
how it has to be done.
<display:column title="columnTitle" >
<a href="javascript:viewCustomerDetails('<c:out
value="${customerDetTable.customerId}"/>');">
<img src="<html:rewrite page="/images/bttns/bttn_view.gif"/>" alt="View
Details" border="0" /></a>
</display:column>
where customerDetTable is the id value you provide for the display:table
Hope I got your question correct
Regards,
Kamesh Rao
On 4/18/07, Amol_Ambekar <[EMAIL PROTECTED]> wrote:
Hi,
How can I access a property of a display:column tag in a javascript?
The sytleId and id attributes don't work with the tag it seems.
I want to pass a property value in the display;column tag to a
javascript function as an argument.
Thanks,
Amol
DISCLAIMER:
This email (including any attachments) is intended for the sole use of
the intended recipient/s and may contain material that is CONFIDENTIAL
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying or distribution or forwarding of any or all of the contents in
this message is STRICTLY PROHIBITED. If you are not the intended
recipient, please contact the sender by email and delete all copies;
your cooperation in this regard is appreciated..
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE
COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the
sender by email and delete all copies; your cooperation in this regard is
appreciated.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user