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

RE: Selection through a Dropdown List box

Subject: RE: Selection through a Dropdown List box
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 15 Feb 2001 18:38:53 -0000
javascript list box selection
> I have a xml file which looks like this
>
> <Address>
> 	<Business>
> 		<Street> 2000 MaryLane Wonderland </Street>
> 		<City> Paradise </City>
> 	</Business>
> 	<Home>
> 		<Street> 1000 Snow Mountain View </Stree>
> 		<City> SnowLand </City>
> </Address>
>
> If my Html page Should show a dropdown list containing 2 elements
> Business and Home
>
> And based on what is selected it should show corresponding address
> in a textarea next to it how can we do it.

Start by dividing the problem into two:
(a) decide what the HTML page should be like
(b) decide what XSLT you need to write in order to generate this HTML

There are basically two design approaches: when the user selects something
from the dropdown, you can invoke Javascript that populates the textarea
directly; or you can invoke JavaScript that invokes a second XSLT
transformation that populates the textarea.

Mike Kay


 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.