Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onClick radio button send to asp page

Status
Not open for further replies.

dancinOTG

Technical User
Aug 28, 2002
19
CA
Ok i have a page called for eg. shows.asp. On this page is a bunch of icons.

On the form page (tourneyreg.asp) i have a button that brings up the shows.asp in a pop up window.

Beside each of the images on the shows. page is a radio button. I want to be able to have a user click on one of the radio buttons beside the icon they want and have the information sent to the form on the tourneyreg.asp page.

The tourneyreg page is then sent to the database. (this already done and working fine)

any help would be appreciated

dancinOTG
 
Try setting an onClick event on the radio button to do a function call back to your original page, ie
suppose you have a javascript function in your orignal page, it is called setShow(showName){}. It would set a value in a hidden field in your form that will hold the show info.
In your popup window you could have your radio buttons do something like:
Code:
<radio name=&quot;whatever&quot; value=&quot;whatever1&quot; onClick=&quot;window.parent.setShow('ShowName1');&quot;><br>
<radio name=&quot;whatever&quot; value=&quot;whatever2&quot; onClick=&quot;window.parent.setShow('ShowName1');&quot;><br>
<radio name=&quot;whatever&quot; value=&quot;whatever3&quot; onClick=&quot;window.parent.setShow('ShowName1');&quot;>
Or you could pass back the value of the radio button. you may wish to window.close() after you call the parent window function to get rid of the shows window. ie
Code:
<radio name=&quot;whatever&quot; value=&quot;showName1&quot; onClick=&quot;window.parent.setShow(this.value);window.close();&quot;>

Just some thought, hope they help
-Tarwn ------------ My Little Dictionary ---------
Extreme Programming - (1)Trying to code before my second cup of coffee. (2) While(1){ Ctrl+C; Ctrl+V; }
FAQ - Web-ese for &quot;Forget Asking Questions, I am to busy&quot; :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top