Home All Groups Group Topic Archive Search About

How can I type in the combo box <select> ?

Author
16 Jun 2009 9:12 PM
fniles
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.

<select name="S1"></select>
<script language="JavaScript">
var oOption = document.createElement("OPTION");
oOption.text="one"
document.all.item("S1").add(oOption);
</script>

Author
16 Jun 2009 9:25 PM
Evertjan.
fniles wrote on 16 jun 2009 in microsoft.public.inetserver.asp.general:

> 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)
Are all your drivers up to date? click for free checkup

Author
16 Jun 2009 9:57 PM
Adrienne Boswell
Show quote Hide quote
Gazing into my crystal ball I observed "fniles" <fni***@pfmail.com>
writing in news:O01oocs7JHA.5932@TK2MSFTNGP03.phx.gbl:

> 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.
>
><select name="S1"></select>
><script language="JavaScript">
> var oOption = document.createElement("OPTION");
> oOption.text="one"
> document.all.item("S1").add(oOption);
></script>
>
>

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
Author
17 Jun 2009 12:46 PM
Tim Slattery
Adrienne Boswell <arb***@yahoo.com> wrote:

>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)
Slatter***@bls.gov
http://members.cox.net/slatteryt
Author
17 Jun 2009 1:42 PM
Bob Barrows
Tim Slattery wrote:
> Adrienne Boswell <arb***@yahoo.com> wrote:
>
>> 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.
>
.... which is not to say that one could not use a combination of
client-side script, css and html to roll one's own. In fact, I would be
shocked if code to do this is not easily findable via a google search.
Of course, such an approach would require some browser-sniffing to make
sure the browser settings/capabilities support the functionality of the
solution.

--
HTH,
Bob Barrows
Author
17 Jun 2009 3:19 PM
Adrienne Boswell
Gazing into my crystal ball I observed "Bob Barrows" <reb01501
Show quoteHide quote
@NOyahoo.SPAMcom> writing in news:#3V3oF17JHA.1424@TK2MSFTNGP02.phx.gbl:

> Tim Slattery wrote:
>> Adrienne Boswell <arb***@yahoo.com> wrote:
>>
>>> 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.
>>
> ... which is not to say that one could not use a combination of
> client-side script, css and html to roll one's own. In fact, I would be
> shocked if code to do this is not easily findable via a google search.
> Of course, such an approach would require some browser-sniffing to make
> sure the browser settings/capabilities support the functionality of the
> solution.
>

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?

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Author
17 Jun 2009 8:54 PM
fniles
I posted this question on the ASP group as well as the vbscript and jscript
group.
Adrienne, you mentioned that the question was asked a lot in the client side
groups, was there an answer for it ?

Thanks

Show quoteHide quote
"Adrienne Boswell" <arb***@yahoo.com> wrote in message
news:Xns9C2D54A8AAAD6arbpenyahoocom@85.214.105.209...
> Gazing into my crystal ball I observed "Bob Barrows" <reb01501
> @NOyahoo.SPAMcom> writing in news:#3V3oF17JHA.1424@TK2MSFTNGP02.phx.gbl:
>
>> Tim Slattery wrote:
>>> Adrienne Boswell <arb***@yahoo.com> wrote:
>>>
>>>> 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.
>>>
>> ... which is not to say that one could not use a combination of
>> client-side script, css and html to roll one's own. In fact, I would be
>> shocked if code to do this is not easily findable via a google search.
>> Of course, such an approach would require some browser-sniffing to make
>> sure the browser settings/capabilities support the functionality of the
>> solution.
>>
>
> 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?
>
> --
> Adrienne Boswell at Home
> Arbpen Web Site Design Services
> http://www.cavalcade-of-coding.info
> Please respond to the group so others can share
>
Author
17 Jun 2009 9:13 PM
Bob Barrows
Forgive me for answering for her, but the answer was in my previous
reply:
http:lmgtfy.com/q=html+combo+box

There are several useful hits on the first page of results.

fniles wrote:
Show quoteHide quote
> I posted this question on the ASP group as well as the vbscript and
> jscript group.
> Adrienne, you mentioned that the question was asked a lot in the
> client side groups, was there an answer for it ?
>
> Thanks
>
> "Adrienne Boswell" <arb***@yahoo.com> wrote in message
> news:Xns9C2D54A8AAAD6arbpenyahoocom@85.214.105.209...
>> Gazing into my crystal ball I observed "Bob Barrows" <reb01501
>> @NOyahoo.SPAMcom> writing in
>> news:#3V3oF17JHA.1424@TK2MSFTNGP02.phx.gbl:
>>
>>> Tim Slattery wrote:
>>>> Adrienne Boswell <arb***@yahoo.com> wrote:
>>>>
>>>>> 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.
>>>>
>>> ... which is not to say that one could not use a combination of
>>> client-side script, css and html to roll one's own. In fact, I
>>> would be shocked if code to do this is not easily findable via a
>>> google search. Of course, such an approach would require some
>>> browser-sniffing to make sure the browser settings/capabilities
>>> support the functionality of the solution.
>>>
>>
>> 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?
>>
>> --
>> Adrienne Boswell at Home
>> Arbpen Web Site Design Services
>> http://www.cavalcade-of-coding.info
>> Please respond to the group so others can share

--
HTH,
Bob Barrows
Author
18 Jun 2009 2:22 PM
Adrienne Boswell
Gazing into my crystal ball I observed "fniles" <fni***@pfmail.com>
writing in news:Ow2VQ347JHA.6136@TK2MSFTNGP03.phx.gbl:

Please do not top-post.  See reply at bottom.

Show quoteHide quote
>
> "Adrienne Boswell" <arb***@yahoo.com> wrote in message
> news:Xns9C2D54A8AAAD6arbpenyahoocom@85.214.105.209...
>> Gazing into my crystal ball I observed "Bob Barrows" <reb01501
>> @NOyahoo.SPAMcom> writing in
>> news:#3V3oF17JHA.1424@TK2MSFTNGP02.phx.gbl:
>>
>>> Tim Slattery wrote:
>>>> Adrienne Boswell <arb***@yahoo.com> wrote:
>>>>
>>>>> 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.
>>>>
>>> ... which is not to say that one could not use a combination of
>>> client-side script, css and html to roll one's own. In fact, I would
>>> be shocked if code to do this is not easily findable via a google
>>> search. Of course, such an approach would require some
>>> browser-sniffing to make sure the browser settings/capabilities
>>> support the functionality of the solution.
>>>
>>
>> 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?
>>
> I posted this question on the ASP group as well as the vbscript and
> jscript group.
> Adrienne, you mentioned that the question was asked a lot in the
> client side groups, was there an answer for it ?
>
> Thanks

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.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Bookmark and Share