[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How to call Javascript function from xsl

Subject: How to call Javascript function from xsl
From: charles <charles@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Jul 2002 15:53:52 +1200
charles vijay
Hi ,

I am trying to call javascript function "on_change()" from my xsl
code.It works fine in IE but not in Netscape.Why is it ?? Can
anyone solve my issue .

My xsl code :

<xsl:template match="LOG-LEVELS">

<script language="text/JavaScript">
            function on_change() {
   alert("onchange")
    document.logForm.Modify.value=document.Modify;
    document.logForm.submit();
            }
</script>

<form name="logForm" >
<table>
<tr><td ><b><font >Configuring logging </font> </b> </td> </tr> </table>

<table ><tr><td>

<select onChange="on_change()">
<xsl:attribute name="name"><xsl:value-of
select="'logType'"/></xsl:attribute>
<xsl:for-each select="LOG">
    <option>
    <xsl:attribute name="value"><xsl:value-of
select="@TYPE"/></xsl:attribute>
    <xsl:if test="@TYPE=$logType"><xsl:attribute
name="SELECTED"/></xsl:if>
    <xsl:value-of select="@TYPE"/>
    </option>
</xsl:for-each>

   </select>

</td></tr></table>

</form>

</xsl:template>



Thanks in advance,
Charles Vijay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.