drdexter33
Programmer
I need to pass a value from my XSL file to a JavaScript function and can't quite figure it out.
Example:
--------------------------------------------------------------
<xsl:for-each select="NewDataSet/Cases">
<tr>
//CELL ONE
<td>
<xsl:value-of select="ViewDetails" />
<a href="javascript:ViewDetails()">View Details</a>
</td>
<td>
//CELL TWO
<font face="verdana" size="1" align="middle">
<xsl:value-of select="MRN" />
</font>
</td>
//CELL THREE
<td>
<font face="verdana" size="1" align="middle">
<xsl:value-of select="AccessionNumber" />
</font>
</td>
</tr>
--------------------------------------------------------------
In the ViewDetails function:
<a href="javascript:ViewDetails()">View Details</a>
I would like to pass these values:
<xsl:value-of select="MRN" />
<xsl:value-of select="AccessionNumber" />
Is this possible?
Thanks.
Example:
--------------------------------------------------------------
<xsl:for-each select="NewDataSet/Cases">
<tr>
//CELL ONE
<td>
<xsl:value-of select="ViewDetails" />
<a href="javascript:ViewDetails()">View Details</a>
</td>
<td>
//CELL TWO
<font face="verdana" size="1" align="middle">
<xsl:value-of select="MRN" />
</font>
</td>
//CELL THREE
<td>
<font face="verdana" size="1" align="middle">
<xsl:value-of select="AccessionNumber" />
</font>
</td>
</tr>
--------------------------------------------------------------
In the ViewDetails function:
<a href="javascript:ViewDetails()">View Details</a>
I would like to pass these values:
<xsl:value-of select="MRN" />
<xsl:value-of select="AccessionNumber" />
Is this possible?
Thanks.