Copyright (c) 2002-2005, Jeremy Bettis jeremy@deadbeef.com
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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.
I also want to know, How I can call properties and method, so I can set then at runtime using javascript.
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?
Nope.
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.
http://chakrabarty.com/pp_editable_dropdown.html
http://chakrabarty.com/combobox.html
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?
Hi,
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…)
thanks,
CK