This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XML and HTML (Selectboxes & client-side scriptiing)


Ben Sorek wrote:
> 
> I am having a problem. Maybe it's trivial.

Trivial no. Last year it would have been almost impossible in fact
without Java or ActiveX :-) 

> 
> I have an XML file that looks something like this:
> .....
> 
> then when the user selects cars, another drop down list on the same page has
> the choices:
> SUBARU
> FORD
> TOYOTA
> HONDA
> 
> does anybody have any idea how i would do that.

First make yourself a 'static' page that can even achieve those results
in DHTML. That's the tricky bit.
There's a lot of JavaScript required to remake selectboxes on-the-fly.
Once you've got that happening you can step back and start to abstract
an XSL that will do it for you.

OR

If you only want it to work in IE5, see some of the MSDN columns.
They've got some really tricky examples with keeping an XML object
around & manipulating it on the client-side.

.dan.
  

:=====================:====================:
: Dan Morrison        : The Web Limited    :
:  http://here.is/dan :  http://web.co.nz  :
:  dman@es.co.nz      :  danm@web.co.nz    :
:  04 384 1472        :  04 495 8250       :
:  025 207 1140       :                    :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]