[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Consider my problem: i want the user select a filter option (by a HTML SELECT ) and then execute a xsl script.
The Microsoft examples give a solution using many xsl script (corresponding to filter options).
I think there is a better solution (using only one xsl file) and i have 2 ideas:
1) consider the following source code: the goal is to set a javascript global variable
<BODY>
<SELECT onchange="setMessageType(this.options[this.selectedIndex].value)">
<OPTION VALUE="All">All</OPTION>
<OPTION VALUE="INFO">INFO</OPTION>
</SELECT>
the "setMessageType" is a javascript function. The problem is how to do to call it (IE5 outputs an error "Object expected")
2) is it possible to use a xsl:variable in the SELECT ?
I've tried to declare a xsl:variable but IE5 answers "Keyword xsl:variable may not be used here".
Does anybody can help me ?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL and SELECT
Subject: XSL and SELECT From: "gilles lescot" <glescot@xxxxxxxxxxx> Date: Thu, 11 May 2000 08:30:54 CEST |
Consider my problem: i want the user select a filter option (by a HTML SELECT ) and then execute a xsl script.
The Microsoft examples give a solution using many xsl script (corresponding to filter options).
I think there is a better solution (using only one xsl file) and i have 2 ideas:
1) consider the following source code: the goal is to set a javascript global variable
<BODY>
<SELECT onchange="setMessageType(this.options[this.selectedIndex].value)">
<OPTION VALUE="All">All</OPTION>
<OPTION VALUE="INFO">INFO</OPTION>
</SELECT>
..... <xsl:script language="JavaScript"> <![CDATA[ var MessageType = ''; //Global variable used by all functions !!!! function setMessageType(e) { MessageType = e; } ]]> </xsl:script>
the "setMessageType" is a javascript function. The problem is how to do to call it (IE5 outputs an error "Object expected")
2) is it possible to use a xsl:variable in the SELECT ?
I've tried to declare a xsl:variable but IE5 answers "Keyword xsl:variable may not be used here".
Does anybody can help me ?
Regards ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
FOP properties currently supported, Paul_Martin | Thread | RE: XSL and SELECT, Jonathan Marsh |
RE: OFF TOPIC: New Dad, Kay Michael | Date | RE: replacing linefeeds with tag, Kay Michael |
Month |
Keywords