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 Spring in Action this week in the Spring 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
 
wood burning stoves
 
subject: function for radio button