<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_htmlselect</id>
	<title>Ns htmlselect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_htmlselect"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_htmlselect&amp;action=history"/>
	<updated>2026-04-18T15:56:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_htmlselect&amp;diff=2695&amp;oldid=prev</id>
		<title>WikiSysop: imported from WiKit id 576</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_htmlselect&amp;diff=2695&amp;oldid=prev"/>
		<updated>2004-06-17T06:30:22Z</updated>

		<summary type="html">&lt;p&gt;imported from WiKit id 576&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Man page: http://aolserver.com/docs/tcl/ns_htmlselect.html&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NAME'''&lt;br /&gt;
&lt;br /&gt;
: ns_htmlselect - Build an HTML SELECT form widget from the specified data&lt;br /&gt;
&lt;br /&gt;
'''SYNOPSIS'''&lt;br /&gt;
&lt;br /&gt;
: '''ns_htmlselect''' ''?-multi? ?-sort? ?-labels labels? name values ?selectedData?''&lt;br /&gt;
&lt;br /&gt;
'''DESCRIPTION'''&lt;br /&gt;
&lt;br /&gt;
: This command builds an HTML SELECT tag using the passed-in data.&lt;br /&gt;
&lt;br /&gt;
: If ''-multi'' is specified, the SELECT will be generated with the MULTIPLE attribute to allow multiple options to be selected.  This option also affects the SIZE attribute output for the SELECT.  If ''-multi'' is specified, the SIZE attribute will be set to 5 or the number of elements in ''values'', whichever is less.  If ''-multi'' is not specified, then the SIZE attribute will be set to 5 if there are more than 25 elements in ''values''.  If there are 25 or fewer elements in ''values'', the SIZE attribute will be omitted (equivalent to SIZE=1).&lt;br /&gt;
&lt;br /&gt;
: If ''-sort'' is specified, the option list of the SELECT will be sorted according to the elements of ''labels'', or the elements of ''values'' if ''labels'' is not specified.  &lt;br /&gt;
&lt;br /&gt;
: ''labels'' is an optional list of labels to display.  If not specified, the elements of ''values'' will be used.  The order and number of the ''labels'' list must match the order and number of the ''values'' list.&lt;br /&gt;
&lt;br /&gt;
: ''name'' specifies the NAME attribute of the SELECT.&lt;br /&gt;
&lt;br /&gt;
: ''values'' is a list of the OPTIONs for the SELECT. If a ''labels'' list is not specified, the values themselves will be used as the OPTION labels.  &lt;br /&gt;
&lt;br /&gt;
: ''selectedData'' is an optional list of the OPTIONs that will be selected by default.&lt;br /&gt;
&lt;br /&gt;
'''EXAMPLES'''&lt;br /&gt;
&lt;br /&gt;
    % set favoriteAnimal [[ns_htmlselect_old -sort -labels [list dog cat cow]] &amp;quot;favoriteAnimal&amp;quot; [[list canine feline bovine]] [[list canine]]]&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;SELECT NAME=favoriteAnimal&amp;gt;&lt;br /&gt;
    &amp;lt;OPTION VALUE=&amp;quot;feline&amp;quot;&amp;gt;cat&lt;br /&gt;
    &amp;lt;OPTION VALUE=&amp;quot;bovine&amp;quot;&amp;gt;cow&lt;br /&gt;
    &amp;lt;OPTION VALUE=&amp;quot;canine&amp;quot; SELECTED&amp;gt;dog&lt;br /&gt;
    &amp;lt;/SELECT&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''NOTES'''&lt;br /&gt;
&lt;br /&gt;
: The NAME attribute is not quoted, so you may discover code abusing this parameter to give the SELECT additional attributes such as an id, a style, or an event handler.  Expecting this behavior to be present in future releases is not recommended.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Category Documentation]] - [[Category Core Tcl API]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
</feed>