SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : XML Technologies :

Previous DiscussionNext Discussion
 Problem using Javascript in an XSL file

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.

Started By drdexter33 on Jan 18, 2006 at 12:31:23 PM

7 Response(s) | Reply

View All Replies | Goto Page: 1
Jack Turk on Jan 20, 2006 at 3:17:26 AM


View All Replies | Goto Page: 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2000 InsideDHTML.com, LLC. All rights reserved.