• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Creating Editable Combo-box

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using a combo box in web page and the values of
the combo are fetched from database. Now I need
to allow the user to add his own entry to the combo,
if he doesn't find a proper option in the combo.

how to make the combo editable? please give me your valuable inputs.
 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
to my best knowledge you'll need a seperate input field and something like a "add" button. and one to "remove". and one to "edit"...

all this will result in a reloaded combo-box, which means that you cannot manipulate it on the fly, even though you might use ajax to give it a "on the fly"-impression.

:-)

jan
 
Ganesh MV
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jan,

thanks for your reply. I'll try adding another text box
to add values to combo.

thanks again.
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ganesh,
A JS is available on net(i dont have the link) that would do the same what you desire. I couldnt post the same coz if JS validation on javaranch. Please search adn you should be able to find it. I had the same for my code..
Regards,
Roshani
 
Ganesh MV
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Roshani,

I've searched in the net as you told and i got
some javascripts which works perfectly.

now i'm able to add new entry in my combo.

thanks for your suggestion.
reply
    Bookmark Topic Watch Topic
  • New Topic