aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes function for radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "function for radio button" Watch "function for radio button" New topic
Author

function for radio button

akshaj nampelly
Greenhorn

Joined: May 18, 2005
Posts: 18
I need a function for a radio button which to be selected a single row for search results. Based on that radio button selection I have carry that row to next page.

Any pointers on this function, I have to include that in my jsp page of search results.

Akshaj
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
give the radio button a value that corresponds to the row, submit the form and you know what is selected. I am not sure what you are after exactly. Are you trying to avoid hitting the db again?

Eric
akshaj nampelly
Greenhorn

Joined: May 18, 2005
Posts: 18
Hi Eric

yep, I am avoiding to hitting db again.

Just have to carry one of many records I got by search into next page.

Akshaj
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
this is a little ugly, but it gets the job done. It finds the row that is selected and dumps the cell values into hidden elements. You can submit the form and grab the values from the hidden elements.



Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: function for radio button
 
Similar Threads
help in radio button
submit form problem
How to get values of first page in second page
binding a radio button to a row in a table
call one jsp's java script function to another jsp's javascript function