xsl-list
[Top] [All Lists]

Re: [xsl] calling javascript function with parameters from xslt

2008-07-26 00:13:26
onclick="javascript:__EmployeeDetails( <xsl:value-of
select="./fldEmployee"/> )">Employee Details</a>

is it possible?is there any otherway(I know xslt can also be in client side) ?

You might want to write:

onclick="javascript:__EmployeeDetails({./fldEmployee})".

This is an attribute value template, permitted in literal elements.
Text in curly braces is xpath.
--
Vladimir Nesterovsky
http://www.nesterovsky-bros.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>