469,904 Members | 2,289 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

To populate textfields on a page with the cell contents of a dynamic table depending on the row selected!

Hi folks,
I am working on a webapplication using Jsp and JS.

On my main Jsp(Jsp1) I have a table which is created dynamically
inside a <divand contains all the backend-table's records as rows,
ie as many records in the MySql-table as many rows in my Html-
table(say T1).I am creating this dynamic table using a Jsp-scriptlet
and I have set a vertical scrollbar on the <divsuch that user can
see 5 rows of T1 at a time.Each row in T1 has a radio button
associated with it which is used to select a particular row for
modifying it.User can select a single row at a time.

The requirement is that if I select the radio button on any row then
the cell-contents of that row should be populated in the corresponding
textfields of Jsp1.

For eg:- say every row of T1 has 3 cells C1,C2 and C3.
and say Jsp1 has 3 TextFields on it txt1,txt2 and txt3.
Now I need that if the user clicks the radio of the 3rd row then C1's
contents for the 3rd row be populated in txt1,C2's in txt2 and C3's in
txt3.

I am totally clueless as to how to determine which row it is that has
its radio button clicked and how to retrieve individual cell values of
the table and set them as text in the textfields of Jsp1?!

Any suggestions?

Jan 30 '07 #1
1 1669
see response on on post:
http://groups.google.com/group/comp....browse_thread/
thread/cb0047281113f920/#
Jan 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Murphy | last post: by
1 post views Thread by Stephen | last post: by
3 posts views Thread by David Whitney | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.