<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Fiesta</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>BODY {
        FONT-SIZE: 10pt; COLOR: #cccc00; FONT-FAMILY: Verdana, Arial
}
</STYLE>

<META content="MSHTML 6.00.2726.2500" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff background="">
<DIV><FONT face=Arial color=#000000>Walter,</FONT></DIV>
<DIV><FONT face=Arial color=#000000>I can't speak for Smitha, but I think 
the&nbsp;concept of "combo box" may differ depending upon the development 
environment. For instance, I'm assuming you're right about how VB looks at it, 
but in ToolBook (a not-wildly-dissimilar development tool), a combo box can be 
editable (like what you're talking about in VB)&nbsp;or non-editable, and when 
non-editable, the combo box really is just like the SELECT element in HTML. I 
know what you mean, though, about the terminology - when I first noticed SELECT 
elements in Web pages, I thought "oh, cool, combo boxes", based upon my 
experience with ToolBook, although I quickly picked up on the different 
nomenclature. I always just thought of SELECT elements as being 
non-(user)editable combo boxes. BTW, Revolution (a Windows/Mac/Unix&nbsp;RAD 
tool that can produce executables for&nbsp;all three platforms&nbsp;from one 
source project on any of those platforms) has combo boxes that are just like the 
ones in ToolBook, i.e., the non-(user)editable ones act like SELECT 
elements.</FONT></DIV>
<DIV><FONT face=Arial color=#000000>Tommy Simmons<BR>Employment Law Advisory 
Network<BR><A 
href="http://www.employmentlawadvisors.com">www.employmentlawadvisors.com</A></FONT></DIV>
<DIV><FONT face=Arial color=#000000></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=walter@torres.ws href="mailto:walter@torres.ws">Walter Torres</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 25, 2003 1:25 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Javascript] in response to 
  "add a new entry in a drop down menu"</DIV>
  <DIV><BR></DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>Not to be too picky, 
  but a SELECT Element in HTML is *not* a combo-box.</SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>A "combo-box" is a VB 
  Object that lists you, the user-not the developer, create a new item to a pick 
  list by keying the info right a the pick list.</SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>An HTML SELECT Element 
  does not have that "feature" (Boy! I wish it did!)</SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>So, your example is 
  nice "one liner", it does not make the SELECT a combo box.</SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>You really had me 
  excited when I was reading this thread about "dynamically adding an item in a 
  combo-box".</SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>I was eager to see the 
  solution.</SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>But 
  alas...</SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>Anyway, as I said, 
  nice "one-liner"</SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#000000><SPAN class=722120805-25062003>jsWalter <EM>[still 
  eagerly wishing for a true combo-box]</EM></SPAN></FONT></DIV>
  <DIV><FONT color=#000000><SPAN 
  class=722120805-25062003></SPAN></FONT>&nbsp;</DIV>
  <DIV><SPAN class=722120805-25062003>So,</SPAN></DIV>
  <BLOCKQUOTE 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #cccc00 2px solid">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT 
    face=Tahoma>-----Original Message-----<BR><B>From:</B> 
    javascript-bounces@LaTech.edu [mailto:javascript-bounces@LaTech.edu]<B>On 
    Behalf Of </B>Smitha Ramaswamy<BR><B>Sent:</B> Wednesday, June 25, 2003 
    12:00 AM<BR><B>To:</B> [JavaScript List]<BR><B>Subject:</B> RE: [Javascript] 
    in response to "add a new entry in a drop down menu"<BR><B>Importance:</B> 
    High<BR><BR></DIV></FONT>
    <DIV><SPAN class=320535504-25062003><FONT 
    color=#000000>Hi,</FONT></SPAN></DIV>
    <DIV><SPAN class=320535504-25062003><FONT 
    color=#000000></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=320535504-25062003><FONT color=#000000>I have attached a 
    very simple html with JS code that will enable you to add a new element to 
    the combo box.</FONT></SPAN></DIV>
    <DIV><SPAN class=320535504-25062003><FONT color=#000000>I hope this is of 
    some help to you.Do get back to me in case of any 
    queries.</FONT></SPAN></DIV>
    <DIV><SPAN class=320535504-25062003><FONT 
    color=#000000></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=320535504-25062003><FONT 
    color=#000000>&lt;HTML&gt;<BR>&lt;HEAD&gt;<BR>&lt;TITLE&gt; New Document 
    &lt;/TITLE&gt;<BR>&lt;META NAME="Generator" CONTENT="EditPlus 
    1.2"&gt;<BR>&lt;META NAME="Author" CONTENT=""&gt;<BR>&lt;META 
    NAME="Keywords" CONTENT=""&gt;<BR>&lt;META NAME="Description" 
    CONTENT=""&gt;<BR>&lt;/HEAD&gt;</FONT></SPAN></DIV>
    <DIV><FONT color=#000000></FONT>&nbsp;</DIV>
    <DIV><SPAN class=320535504-25062003><FONT color=#000000>&lt;BODY 
    BGCOLOR="#FFFFFF"&gt;<BR>&lt;FORM&gt;<BR>&lt;SELECT 
    NAME="test"&gt;<BR>&lt;option value="1"&gt;one&lt;/option&gt;<BR>&lt;option 
    value="2"&gt;two&lt;/option&gt;<BR>&lt;/SELECT&gt;</FONT></SPAN></DIV>
    <DIV><FONT color=#000000></FONT>&nbsp;</DIV>
    <DIV><SPAN class=320535504-25062003><FONT color=#000000>&lt;SCRIPT 
    LANGUAGE="JavaScript"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.forms[0].test.options[document.forms[0].test.options.length] 
    = new Option('three','3')<BR>&lt;/SCRIPT&gt;</FONT></SPAN></DIV>
    <DIV><FONT color=#000000></FONT>&nbsp;</DIV>
    <DIV><SPAN class=320535504-25062003><FONT 
    color=#000000>&lt;/FORM&gt;<BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;<BR></FONT></SPAN></DIV>
    <DIV><SPAN class=320535504-25062003><FONT 
    color=#000000></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=320535504-25062003><FONT 
    color=#000000>Regards,</FONT></SPAN></DIV>
    <DIV><SPAN class=320535504-25062003><FONT 
    color=#000000>Smitha</FONT></DIV></SPAN></BLOCKQUOTE>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Javascript mailing 
  list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>