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

Re: Javascript variable to XSL variable

Subject: Re: Javascript variable to XSL variable
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Thu, 17 Feb 2005 08:53:19 -0800
xsl option selected
Camalesn wrote:

Well, I am forced to use Javascript due to I have to work with combo boxes and I need "onchange" event to operate and select values (depending of the option selected).

One combo box contains XML data and displays the values. When I select
one option, I need lo load one XML file (depending on the selected
value).

For example:

<select name="combo1">
<option select="file1.xml">Option1</option>
<option select="file2.xml">Option2</option>
<option select="file3.xml">Option3</option>
<option select="file4.xml">Option4</option>
</select>

This isn't an XSL problem. You should get this working in plain HTML first. You probably want something like:


<select name="combo1" onchange="transformSelection(this.value)">
  <option value="file1.xml">Option1</option>
...

best,
-Rob

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.