Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

function for radio button

 
akshaj nampelly
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic