A combobox element behavior written completly in JScript. Works in Internet Explorer 5.0 and up only.
View Sample (IE 5 only)
Pages: 1 2 3
ComboBox WebControl »
I take this source, but this doesn’t work in my browse (6.0)together other things (xml, jsp, dataisland), if I but alone its working
I am trying to use the combo box on an internal web page which posts data from a form. I have 3 combo boxes on the page each with unique names and IDs but when i look at the values passed to the next page i get undefined=value, where value is the correct selected value. nut the name that i give it shows up as “undefined”. anyone else seen this?
I have updated the sample page to demonstrate how to use the comboboxes in a form. Please check it again.
can we give a flat look for this combobox
If you look at the source code, you will see that it is just a textbox with a clipped select element beside it. Put in some CSS or style attributes and see what happens!
Can this DHTML Combobox bind from a value? Just like a normal dropdownlist?
I’ve tried other Combobox,but it has a problem in binding a value?
Please see http://www.deadbeef.com/combobox_webcontrol for a web control based on this combobox. I assume that is what you mean when you say “bind from a value”.
I want to stop the user from entering values other than listed, how do I do it?. I’m able to get the entered value, but unable to set focus or clear the value?
If you don’t want the user to enter other choices, you don’t need a combobox, just use an HTML select element. If you really want to do what you are asking for, you need to reach inside the combobox and get to.the textfield element (exposed via the textfield property).
How can I get the ComboBox to submit it’s option value instead of the option text?
That is not how it is designed. Here is my reasoning: If you had 3 options 1=one 2=two 3=three, and the server received the value “1″ how would you know if the user typed “1″ or selected the option “one” ?
Perhaps it could submit both back to the server i.e. foo=one&foo_val=1 but that would require some new code. If someone wants to make that change, I will update the code here.
Iam not able to set focus or use the tabindex for this control. Please help me to resolve this issue.
Thanks in advance
How I can use the control on form.
I could not use the example.
When I saved the HTC and html in file and tried on my machine I do not see the combobox.
Thanks in advance.
I am trying to get the selected value from combo box but its selecting the last value in the list. Help me please
You can peek inside and look at the SELECT and INPUT elements directly.
How can i check if the value is selected in the combo box?I need the value selected in the combo box for further calculations.
Do you have any plans on making this work in Mozilla/Firefox?
I tried to control the size of the
textfield .Then people can’t input too long string .But failed.
Can you give me some advice?
Thanks a lot.
You can try using html code for COMBOBOX in HTML available at these links. It is an Editable DropDown Listbox with any one select option as Editable (like a textbox ) and the rest as readonly.
How can I have any values the user enters inserted into the lsit for future reference?
I want to move the combobox over to the center of the page. Can you tell me how2 to do this?
I used this for a few months now, but suddenly i get a JS error about popup.options being null or not an object (line 199 of combobox.htc).
I’m using IE7.
could anyone help regarding this issue? (i know this might be a dead thread…)