Connecting Tech Pros Worldwide Forums | Help | Site Map

Onclick radio Populate form, table dynamically.tables radio onclick populate field

Newbie
 
Join Date: Aug 2009
Posts: 1
#1: Aug 14 '09
Hi all, I have a problem related to javascript , ajax and jsp.
Please see this url http://xil.co.in/print_screen_2.JPG.

I am working on this form. There are some buttons (like submit , add ,edit at bottom of this page , but not visible in printscreen).

On click of a radio button on left side , form fields on right side and small table on right bottom is gettig populated. The table on right bottom , is actually the eligibility criteria associated with the record whose radio was clicked on left . On clicking radio of this record(right side) , I want to populate its values in the above text boxes present right in front of text "Eligibility".

During the whole click process (clicking the left and right radio button ) page should not get refreshed.
I am able to show records on left side by iterating over a resultset (in jsp) and able to populate field on right side also, but have no idea how to populate table on right bottom dynamically such that I can handle onclick event on its radio button.
I am pretty much new to ajax. please tell me how to achieve this.



acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Sep 5 '09

re: Onclick radio Populate form, table dynamically.tables radio onclick populate field


The idea is the same except that you pass on the value of the radio button to the script when clicked/selected and not when not selected.
Reply