|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How can I type in the combo box <select> ?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> 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 Classical ASP does not know about comboboxes> 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. I myself do not even know, nor want to know what a combobox is. > This is alle clientside code.> <select name="S1"></select> > <script language="JavaScript"> > var oOption = document.createElement("OPTION"); > oOption.text="one" > document.all.item("S1").add(oOption); > </script> 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)
Show quote
Hide quote
Gazing into my crystal ball I observed "fniles" <fni***@pfmail.com> First of all, what you are talking about is client side, and should be in 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> > > 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 Adrienne Boswell <arb***@yahoo.com> wrote:
>First of all, what you are talking about is client side, and should be in Right. This is not dependent on VBS or any other scripting language,>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. but on HTML. And HTML simply doesn't have anything corresponding to a combo box. Tim Slattery wrote:
> Adrienne Boswell <arb***@yahoo.com> wrote: .... which is not to say that one could not use a combination of> >> 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. > 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 Gazing into my crystal ball I observed "Bob Barrows" <reb01501
Show quoteHide quote @NOyahoo.SPAMcom> writing in news:#3V3oF17JHA.1424@TK2MSFTNGP02.phx.gbl: You know, it's something that is asked about quite a lot in the client > 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. > 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 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 > 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 Gazing into my crystal ball I observed "fniles" <fni***@pfmail.com> Please do not top-post. See reply at bottom.writing in news:Ow2VQ347JHA.6136@TK2MSFTNGP03.phx.gbl: Show quoteHide quote > If you had not top posted, you would have read my previous reply that > "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 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
Other interesting topics
How to change all relative paths in a website???
What is the real IP address of the site visitor? ASP.NET and HTML pass stored procedure parameters in asp Select INTO, UNION ASP 0126 Pinpoint unspecified error for objXMLHttp.send objXML statement ClientScript working in IE but not in Mozilla technology choice Set regEx = nothing ? |
|||||||||||||||||||||||