W3C home > Mailing lists > Public > www-forms@w3.org > July 2001

<switch> and <toggle>

From: Roman Huditsch <r.huditsch@hico.com>
Date: Tue, 3 Jul 2001 05:27:23 -0400 (EDT)
To: www-forms@w3.org
Message-ID: <8345DC4EFAD23A4A8959A2830EFBFD0607EBCB@hico-ads.hico.com>

Could you please tell me which syntax I have to use when I want to show
textbox elements in accordance with a selection in a pulldown-menu?
Would it look like the following?

	<xform:selectOne id="username" ref ="/notiz/username"
selectui="pulldown">
		<xform:hint>Bitte geben Sie hier einen Benutzernamen
an</xform:hint>
		<xform:caption>Username: </xform:caption>
			<xform:item value="meier">Meier 
				<toggle switch="switch01" case="case01"
/>
			</xform:item>
			<xform:item value="mueller">Mueller
				<toggle switch="switch01" case="case03"
/>
			</xform:item>
			<xform:item value="huber">Huber
				<toggle switch="switch01" case="case03"
/>
			</xform:item>
	</xform:selectOne> 

	<xform:switch id="switch01" default="case01">
		<xform:case id="case01">
			<xform:textbox...................>
			</xform:textbox>
		</xform:case>
		<xform:case id="case02">
			<xform:textbox...................>
			</xform:textbox>
		</xform:case>
		<xform:case id="case03">
			<xform:textbox...................>
			</xform:textbox>
		</xform:case>
	</xform:switch>

I know that the example isn't quite meaningfull, but I think that it
illustrates my thoughts.

Thanks a lot.
Yours,
Roman Huditsch



> Roman Huditsch (RH ) 
> _____________________________________________________________________
> hico Informations- und Kommunikations-Management Gesellschaft m.b.H.
> TechLab, Thomas A. Edison Straße 2.
> A-7000 Eisenstadt / Austria
> phone: +43/2682/704-61-00; fax: +43/2682/704-71-61-10
> e-mail:support@hico.com;  r.huditsch@hico.com
> 
> 
Received on Tuesday, 3 July 2001 06:16:53 GMT

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