Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Call a function defined in =?UTF-8?B?4oCcbXN4c2w6c2NyaXB04oCd?= =?UTF-8?B?IGJsb2NrIGZyb20g4oCcb25jbGlja+KAnSBoYW4=?= =?Utf-8?Q?Call_a_function_defined_in_=E2=80=9Cmsxs?= =?Utf-8?Q?l:script=E2=80=9D_block_from_=E2=80=9Conclick=E2=80=9D_h?= =?Utf-8?Q?an?=To: NULL Date: 4/3/2008 7:11:00 AM (Beginner's question) Xml file contents: <Results> <Iteration Sample="1" Pressure="14" Derivative="0" Regression="0" /> <Iteration Sample="2" Pressure="16" Derivative="0" Regression="0" /> <Iteration Sample="3" Pressure="10" Derivative="0" Regression="0" /> <Iteration Sample="4" Pressure="25" Derivative="0" Regression="0" /> </Results> With XSLT file: ... <xsl:template match="Iteration"> <td onclick="user:onClickHandler( )"> <xsl:value-of select="@Sample" /> </td> <td> <xsl:value-of select=" @Dervative" /> </td> <td onclick="clickIt()"> <xsl:value-of select="@Regression" /> </td> </xsl:template> ... <msxsl:script language="JScript" implements-prefix="user"> function onClickHandler( ) { } </msxsl:script> Please explain how I can call “onClickHandler†when user clicks somewhere inside “Sample†cell and pass sample number to this function (current implementation throws axception “Object requiredâ€) Thank you, Eugene | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
