Click to See Complete Forum and Search --> : Help Pop Up Form Set To Main Window?


96turnerri
11-19-2003, 08:44 AM
hi i have a form on a page, heres the section that launchs the popup

Do You Require A Domain Name? <a href="domainname.htm" onclick="window.open( this.href, '', 'height=250,width=300,scrollbars=no' );return false;" onMouseOver="window.status='Domain Name Help'; return true;">Help?</a><br>

and hers domainname.htm code

A Domain name is....
<form name="DomainName">Do You Requie A Domain Name?<br><input type="radio" name="Domain" value="Yes">Yes <input type="radio" name="Domain" value="No">No <input type="button" value="Ok"></form>
<hr><a href=javascript:window.close()>Close Window</a>

what i would like is when a user clicks on the help file and the popup opens up reads the bit and decides they would like a domain name and select yes (still in popup) and then click ok, the popup closes and yes is selected in the form, and vice versa for no

This would be a great help#
Thanks
96

rlmjinx
11-19-2003, 11:55 AM
I'm having trouble understanding your intention here.
If you want to send people to different URLs depending on whether they choose Yes or No, then you could just link regular text, instead of a form. And if people choose No, then the window might as well just close.
Basically:

<a href="yespage.html" target="new" onClick="Javascript:window.close()">Yes</a> <a href="Javascript:window.close()">No</a>

If you need to send any information with the "yes" link then just add it as a suburl: "yespage.html?ineed=thisinfo"

If you just "feel like" using a form ;) then link the radiobuttons directly in the same way (onClick or several onClick functions separated with ";"), and you can skip the OK button.

96turnerri
11-19-2003, 01:14 PM
ok heres what i mean in simpler format

1)the user clicks the help link (top code)
2)this opens a popup (bottom code)
3)they read a bit on the help popup
4)select a radio button yes or no then click ok
5)onclick the popup closes, and the radio button they chose in the popup is selected on the main page

thanks for your help

96turnerri
11-19-2003, 09:35 PM
*bump* sorry needed to get it back to top :D