Thanks for the response. That didn't seem to work. I acted the same
as if the "<a
href="javascript:myJSFunction(${listing.name})">${listing.name}</a>"
wasn't even there.
Anything that I put between the <display:column></display:column> is
getting ignored.
Here is the exact code I used:
<display:column property="name" title=" Manager: Name"><a
href="javascript:populateAccountManager(${sessionScope.ManagerLookupActionForm.managersReturned.id})">${sessionScope.ManagerLookupActionForm.managersReturned.name}</a></display:column>
Is sessionScope.ManagerLookupActionForm.managersReturned.name the
correct syntax?
This just shows the name, but it isn't even a link. Is there
something I'm missing?
On Fri, 4 Mar 2005 14:12:08 -0600, PJ Hyett <[EMAIL PROTECTED]> wrote:
> How about: (replace listing with whatever the real id is supposed to be)
>
> <display:column class="listrow" property="name" title="My Title">
> <a href="javascript:myJSFunction(${listing.name})">${listing.name}</a>
> </display:column>
>
> -PJ
>
>
> On Thu, 3 Mar 2005 12:32:28 -0600, Wesley Lemke <[EMAIL PROTECTED]> wrote:
> > I am trying to call a javascript function when a user clicks on a link
> > in a <display:column> tag. Here is my current code:
> >
> > <display:column href="javascript:myJSFunction()" class="listrow"
> > property="name" title="My Title"/>
> >
> > This much works find, but I want to pass a parameter to the function.
> > In this case I want it to be the ID that goes along with the Name. Is
> > there a way to do this?
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > displaytag-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user