Subject:Help with creating onclick event script in xsl Author:Lorrie Nerbas Date:02 May 2006 03:37 PM
Hello, I am very new to xml and xsl.
I need help understanding how to write event script for my navigation menu. I created the xml and xls files in Style Studio and moved them to ASP.Net and used the <asp:xml control to display the menu, which works fine.
Now I need to write vbscript or javascript onclick_() event code for the buttons to direct the user to a division home page which matches the button name.
The aspx page and xsl pages are attached. Thank you very much in advance for your help with this.
Subject:Help with creating onclick event script in xsl Author:Lorrie Nerbas Date:03 May 2006 06:21 PM
You are misunderstanding my question. The code is below. When this is run, 12 buttons are generated from the for-each loop. Each button's value is the division name. I need to run an mybutton_onclick_() event, and get the division name. The user will then be redirected to their division's home page when the event is fired. Can this be accomlished using the value from <xsl:for-each select="cwhome/menu/division">?
</td>
</tr>
</xsl:for-each>
<script language="vbscript" implements-prefix="user">
<![CDATA[
sub doclick()
msgbox(document.form1.elements(mybutton).value)
end sub
]]>
</script>