Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Reference a column name in xsl from within JavaScript >Thread Next - Re: Reference a column name in xsl from within JavaScript Re: Reference a column name in xsl from within JavaScriptTo: NULL Date: 6/15/2007 2:44:00 PM Doogie wrote: > Wouldn't it be just as easy (or possible anyway) to get the name of > the column you clicked from within XSL and send that through to > javascript (which is why I didn't ask this question in a javascript > group)? As you can see, the specific row that was clicked is being > passed in, I would figure there is some way to indicate the specific > column? The XSLT transformation happens before any client-side events like a click occur and before any client-side script runs. I am not sure what "the specific row that was clicked is being passed in" has to do with XSLT at all as that (onclick="GetDetail(this.rowIndex)") too is client-side script that does not in any way depend on whether the HTML document with the script is generated by an XSLT transformation or is a static document. As said, in terms of scripting you can pass in the event object to your function and that has a property srcElement in IE and a property target in other browsers, that way you will get the event target and walking up to the parentNode you will get the cell element (td element) if necessary which has a property cellIndex. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
