W3C home > Mailing lists > Public > www-forms@w3.org > May 2002

Manipulating Interface Elements

From: Jason Foster <jafoster@uwaterloo.ca>
Date: Sat, 4 May 2002 23:42:40 -0400
To: www-forms@w3.org
Message-Id: <2651BDB4-5FDA-11D6-960A-000A27E14D02@uwaterloo.ca>
I've been asked to implement an interface that uses multiple pulldown lists 
to navigate through a tree of information.  When an item from the "top 
level" pulldown is selected, the items in the "second level" pulldown 
change accordingly.  The tree will likely be 6 or 7 levels deep.  I know 
how I would do this in an HTML browser using JavaScript and the HTML DOM.  
What I'm trying to figure out is how to accomplish this using XForms.  Just 
to make like interesting, the pulldowns should be embedded in an SVG 
document so that the SVG document can be altered as the pulldown selections 
change.

My guess is that I would change the portions of the document that define 
the XForms interface using the standard DOM interfaces.  In other words, if 
I want to change the items in an xforms:selectOne, I would construct the 
appropriate <item> nodes the append them.

I'm a little shaky on section 8.11.3 which seems almost appropriate, except 
that I get the impression that the <itemset> needs to be present in the 
original markup.  In my situation there's a chance that I'll be using the 
DOM3 "load()" function to retrieve information dynamically, which won't let 
me specify the <itemset> in the original document.

Any suggestions as to the "proper" way to accomplish what I've been asked 
to do?

Thanks for your help.

Jason Foster
Received on Saturday, 4 May 2002 23:43:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:51 GMT