![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Welcome to Deadbeef.com
SearchLinksOpen SourceOtherFavoritesWho's Online?
Misc |
|
DHTML Combobox08/04/05DHTML ComboboxA combobox element behavior written completly in JScript. Works in Internet Explorer 5.0 and up only. Features:
Comments, Pingbacks:
Comment from: WIlson [Visitor]
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
Comment from: Jason [Visitor]
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?
Comment from: Jeremy [Member]
I have updated the sample page to demonstrate how to use the comboboxes in a form. Please check it again.
Comment from: Jeremy [Member]
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!
Comment from: David Zhang [Visitor]
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?
Comment from: Jeremy [Member]
Please see http://www.deadbeef.com/index.php/combobox_webcontrol for a web control based on this combobox. I assume that is what you mean when you say "bind from a value".
Comment from: csrao [Visitor]
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?
Comment from: Jeremy [Member]
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).
Comment from: martalex [Visitor]
How can I get the ComboBox to submit it's option value instead of the option text?
Comment from: Jeremy [Member]
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.
Comment from: sunilz_kh [Visitor]
Iam not able to set focus or use the tabindex for this control. Please help me to resolve this issue.
Thanks in advance
Comment from: surmad [Visitor]
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
Comment from: Adithya [Visitor]
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.
Comment from: Jeremy [Member]
You can peek inside and look at the SELECT and INPUT elements directly.
Comment from: Rohit [Visitor] · http://www.rcolaco.com
Do you have any plans on making this work in Mozilla/Firefox?
Leave a comment:
|
|
Sponsored LinksTop Articles
Categories
Archives
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||