|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
XSL + JavaScript
Hello,
I am looping through a list of column names and I want to place those column names inside of a anchor tag that simply displayed hello world. I have something like the following: <script> function printMsg(msg) { alert(msg); } </script> Later in my xsl sheet I have <A> <xsl:attribute name="href">#</xsl:attribute> <xsl:attribute name="onclick">printMsg(@name);</xsl:attribute> </A> The links are displaying just. I can also get the links to print a simple hello message. My question is how do you pass the column name to java script for printing in the alert box? Thanks |
|
#2
|
||||
|
||||
|
Try this xml:
PHP Code:
with this xsl (filename 'myxsl.xsl') PHP Code:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XSL + JavaScript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|