xsl-list
[Top] [All Lists]

Re: Javascript variable to XSL variable

2005-02-17 09:53:19
Camaleón 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--