Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is it possible

Status
Not open for further replies.

greyone

Programmer
Dec 14, 2000
200
CA
i want to create a combobox using DHTML and javascript. Well i just wanted to know whether is it possible and if it is how do i go about it. Please help
 
It's possible, but its far too complicated to explain how. I've made a slighlty buggy one that I've only tested in IE5.5 if you want to see it. jared@aauser.com
 
actually html alone is enough to create and display any combo box
now if you want the values displayed inside the combo to dynamically change, faq216-335
 
combobox, you mean like a pulldown selection?

if thats the case, then you could just do it in plain HTML

<select name=somebox>
<option value=1>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
<option value=4>Four</option>
</select>

using something like javascript later on you can get the value.

alert(somebox.value);

Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
there's a difference between a combobox and a select box - comboboxes have an associated text box which you can type into, and it searches the options to make a selection for you. jared@aauser.com
 
well waht i meant by a combo box was an actual combo box where we can edit values dynamically. Hey jared i would love to see that. Is it possible for me to get it working in IE4
 
oh the faq is about a SELECT box which you can edit values dynamically
sorry i misunderstood the question then ! but it's almost the same, i mean appart the associated text box ..
 
almost the same, except the comboboxes are not natively supported by HTML - you have to make them :) jared@aauser.com
 
Ok, I've been working on the web for six years and I've never heard of a combobox. Could someone please explain it in detail?
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
the address abr at the top of explorer - you can type in it, or click the arrow - if you type, it searches the options and chooses the most applicable (if any) choice jared@aauser.com
 
tanderso

Picture a select box, picture that you can change the value of anything in the pulldown.

kind of like the top of IE as he was mentioning, you type in your URL, but also you can pulldown and find past URLs you typed prior, and you can even edit those if you want to make a change to one you did before.

this would be rather useful if he's attempting to make a search engine with a select of similar behavior.
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top