• 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

Populating fields with data on clicking radio button

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I have a jsp page. On the left side of this page, some fields from a table in database is being displayed. The no of records can vary depending upon the search criteria chosen by the user earlier. This is how record is displayed on left side






Now I want to populate the input fields on the right side of this page , depending upon the radio button selected.
Means if the user selected second radio button , then the whole record corresponding to that radio button should get displayed in the input fields on the right side , so as to enable the user to edit them.At the same time partial record on left side should remain visible, so that he can choose a different one.

How to do this ?
Thanks to you all .
 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is an HTML/javascript question. Should be moved.

You can use the onclick event of radio button. Then getting the response can be done in 2 ways:
1. use ajax, to avoid loading whole page.
2. send a request back loading the whole page again.

Your choice!
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic