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

Re: interdependant dropdown lists

Subject: Re: interdependant dropdown lists
From: greyson.smith@xxxxxxxxxxxxx
Date: Mon, 16 Aug 2004 10:21:19 -0500
drop down in xsl
Perhaps not quite what you had in mind, but an interesting alternative:

http://www.litotes.demon.co.uk/example_scripts/dependent_select.html




                      Matt Rich
                      <mattaios@pasteur        To:       Louis Jones
<lmj@xxxxxxxxxx>, xsl-list@xxxxxxxxxxxxxxxxxxxxxx
                      .fr>                     cc:
                                               Subject:   interdependant
dropdown lists
                      08/16/2004 09:24
                      AM
                      Please respond to
                      xsl-list







Hi!

I want do build a sytem of two dropdown lists in which the result of
the first selection will determine which set of values is proposed in
the second one.

I cannot catch the value of the first selection in a variable, because
it needs to be changed by the user.,
So I chose to use a key and its parameter.

<xsl:key name="GrouperParNbAttr"
match="requetes/requetespredef/requete"
use="count(attributes/attribute)"/>
    <xsl:param name="reqid" select="@id" />

This must give me the dropdown list of all requests which have a
certain number of conditions, and the id of these requests as
parameters

<form name="selectreq">
         <select size="1" name="requete">
       <xsl:for-each select="key('GrouperParNbAttr',1 )">
             <option> <xsl:value-of select="name"/></option>
       </xsl:for-each>
         </select>
         </form>

Once the user has chosen a request by clicking on it,  its id should be
displayed:

<td ><font size="1" >
<b>ID </b>  <xsl:value-of select="$reqid"/>
</font></td>

..and the user must be given the choice between the conditions that
correspond to the request.

Is it possible without using Javascript?

Many thanks for any piece of info

Matt

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.