• 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

jsp,javascript,servlet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a 2 list box which is filled and I have a radio button,when I click on radio buton,it will take the data from database and display in those list box,previous item in the listbox must be deleted
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about you make the design a little more simple. Have two list boxes on the page. Hide the one with style="display:none". When the radio button is selected, you show it and hide the other.

onclick="document.formName.elementName1.style.display='inline';document.formName.elementName2.style.display='none';"

This way you do not have to worry about Ajax calls and such to fetch the data from the server.

Eric
reply
    Bookmark Topic Watch Topic
  • New Topic