HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 11th, 2000, 06:37 AM
Gregngn Gregngn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 4 Gregngn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello everyone!

Could you tell me if it's possible to create an editable combobox (that means a
combobox in witch you can type in text) with Javascript and HTML scripts ? If it
is possible, could you tell me the way to do it, because I couldn't find any
answer by myself on the net ?

Thanks for helping me !



------------------
Grégoire Blanc
Dreamcast Audio Programer
No Cliché
http://www.nocliche.com

Reply With Quote
  #2  
Old December 12th, 2000, 06:01 PM
grahamg grahamg is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Location: Sydney, Australia
Posts: 5 grahamg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to grahamg
Combo boxes are designed to contain pre-defined and thus uneditable data.

Having said that there is a way to do it, altough not very intuitive and without knowing the reason behind your desire to do it I would recommend against it.

You need a input field of type text, the user enters a description in the field, then clicks submit, rather than the submit button triggering a POST or a GET it calls a JavaScript function whihc takes the value of the text field and appends it to an array.

It takes the values in the array and builds the required html code for a combo box, then writes the html code out to the page.

The user can then enter another description etc.

If you want a value assigned to the description in the combo box supply 2 text fields or you could increment a counter variable in your code and assign it's value to the combo box.

HTH
Graham

Reply With Quote
  #3  
Old December 19th, 2000, 11:55 AM
Gregngn Gregngn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 4 Gregngn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello Graham,
Sorry not having answered you earlier; but, I thank you a lot for
having tried to help me : My need was to allow a user to type in a
command number or choose one that he had already prepared. That's why
an editable combobox was suitable. I found a solution that consists
in keeping the initial input field, which is an edit box, and,
beside, to create a simple combobox : It's like the solution you
proposed to me. Yet I thank you and wish you good day !


------------------
Grégoire Blanc
Dreamcast Audio Programer
No Cliché
http://www.nocliche.com

Reply With Quote
  #4  
Old December 19th, 2000, 11:57 AM
Gregngn Gregngn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 4 Gregngn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello Graham,
Sorry not having answered you earlier; but, I thank you a lot for
having tried to help me : My need was to allow a user to type in a
command number or choose one that he had already prepared. That's why
an editable combobox was suitable. I found a solution that consists
in keeping the initial input field, which is an edit box, and,
beside, to create a simple combobox : It's like the solution you
proposed to me. Yet I thank you and wish you good day !


------------------
Grégoire Blanc
Dreamcast Audio Programer
No Cliché
http://www.nocliche.com

Reply With Quote
  #5  
Old December 20th, 2000, 03:59 AM
Gregngn Gregngn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 4 Gregngn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello Graham,
Sorry not having answered you earlier; but, I thank you a lot for
having tried to help me : My need was to allow a user to type in a
command number or choose one that he had already prepared. That's why
an editable combobox was suitable. I found a solution that consists
in keeping the initial input field, which is an edit box, and,
beside, to create a simple combobox : It's like the solution you
proposed to me. Yet I thank you and wish you good day !


------------------
Grégoire Blanc
Dreamcast Audio Programer
No Cliché
http://www.nocliche.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > editable combo box


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT