<select name="S1"></select>
<script language="JavaScript">
var oOption = document.createElement("OPTION");
oOption.text="one"
document.all.item("S1").add(oOption);
</script>
> In VB if I use a ComboBox with Style = 0 - Dropdown Combo, besides
> selecting an item from the drop down box, I can also type in the
> combobox. In ASP, when I use <select>, is it possible to type in the
> combox box ? Thank you.
Classical ASP does not know about comboboxes
I myself do not even know, nor want to know what a combobox is.
>
> <select name="S1"></select>
> <script language="JavaScript">
> var oOption = document.createElement("OPTION");
> oOption.text="one"
> document.all.item("S1").add(oOption);
> </script>
This is alle clientside code.
Please do not post such to this NG microsoft.public.inetserver.asp.general
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
First of all, what you are talking about is client side, and should be in
a client side group. You could go to comp.languages.javascript or
comp.infosystems.www.authoring.html, but the real answer to your question
is that you just can't do that. The select element only allows option
elements, and the option element cannot receive input from the client.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
>First of all, what you are talking about is client side, and should be in
>a client side group. You could go to comp.languages.javascript or
>comp.infosystems.www.authoring.html, but the real answer to your question
>is that you just can't do that. The select element only allows option
>elements, and the option element cannot receive input from the client.
Right. This is not dependent on VBS or any other scripting language,
but on HTML. And HTML simply doesn't have anything corresponding to a
combo box.
--
Tim Slattery
MS MVP(Shell/User)
Slatt...@bls.gov
http://members.cox.net/slatteryt
--
HTH,
Bob Barrows
You know, it's something that is asked about quite a lot in the client
side groups. I'm surprised that this isn't something that hasn't been
brought into the specs. Especially since one can do select multiple, why
not select with input? Tim, are you listening?
Thanks
"Adrienne Boswell" <arb...@yahoo.com> wrote in message
news:Xns9C2D54A8AAAD...@85.214.105.209...
There are several useful hits on the first page of results.
--
HTH,
Bob Barrows
Please do not top-post. See reply at bottom.
If you had not top posted, you would have read my previous reply that
said:
"The real answer to your question is that you just can't do that.
The select element only allows option elements, and the option element
cannot receive input from the client."
So, no, it cannot be done, at least not without some client side script
(as Bob mentioned earlier in this thread), with HTML.
Again, this is all client side, client side, client side.