Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Reference a column name in xsl from within JavaScript Reference a column name in xsl from within JavaScriptTo: NULL Date: 6/14/2007 2:00:00 PM
Hi,
I have an xsl file that is used to display the results of data on a
web page...here is a sample of how that's done:
<table id="TblTrips" border="0" cellpadding="1" cellspacing="1">
<tr bgcolor="#AAAAAA">
<td width="0.7in" align="center"> <b><U>Status</U></b></td>
<td width="0.7in" align="center"><b><U>Accepted Trips</U></b></
td>
</tr>
<xsl:for-each select="trip_detail_info[@trip_status=
$statusFilter]">
<tr onclick="GetDetail(this.rowIndex)">
<td><xsl:value-of select="@trip_status"/></td>
<td><input name="test" type="checkbox"></input></td>
</tr>
</xsl:for-each>
My problem is that I now need to pass in the column name that was
clicked (i.e. either the trip status or accepted trips checkbox) into
the GetDetail javascript method referenced in the onClick attribute
above. I cannot figure out how to reference that name. I've tried
this.colName, this.name, etc with no luck.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
