 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
sonny105
Joined: 04 Jun 2007 Posts: 8
|
Posted: Mon Jun 04, 2007 12:31 pm Radio button that launches pop up window |
|
|
|
Hi,
I have a form with 'Yes' and 'No' radio buttons. When clicking on the 'Yes' button I have a popup window that appears. If 'No' is clicked on, I simply show this as selected with no action.
What I have works for the most part, but I have found that if I first click on 'No' and then click on the 'Yes' button, both radio buttons stay are filled in at the same time (the 'No' button does not clear). Also, if I close the active popup window and then click the 'No', both buttons remain selected. Is there a simple fix for this? I realize it is probably an unorthodox way to use a radio button, but thought I would try. a snippet of code is shown below. Any help or code fix is appreciated.
...
<form="name">
Yes
<input type="radio" name="yesButton" onClick="window.open('my web page','popup', width=380,height=190'); return true;" value="0"/>
No
<input type="radio" name="NoButton" value="No">
</form>
... |
|
Pattons3rd

Joined: 28 Dec 2006 Posts: 1212 Location: Colorado
|
Posted: Mon Jun 04, 2007 1:13 pm |
|
|
|
First off this part
is incorrect.
it should be something more like
| Code: |
| <form name="myForm"> |
And as for the other part I believe this is a local host problem meaning once you upload this file to your server it should not keep both radios selected. |
|
sonny105
Joined: 04 Jun 2007 Posts: 8
|
Posted: Mon Jun 04, 2007 6:19 pm |
|
|
|
| Thanks for the correction and information. |
|
Pattons3rd

Joined: 28 Dec 2006 Posts: 1212 Location: Colorado
|
Posted: Tue Jun 05, 2007 4:54 am |
|
|
|
Your welcome.
As for the other part maybe you should consider using links?
I'm sure there are ways to do this just might be easier with links, but if you want to stay with radio buttons just say and I will try to get something together. |
|
sonny105
Joined: 04 Jun 2007 Posts: 8
|
Posted: Tue Jun 05, 2007 6:36 pm |
|
|
|
| Hey thanks, I appreciate any ideas you care to pass along. I kept trying different methods using the radio's but was never satisfied with the result. I am trying some different things, like using standard Windows-like Javascript buttons. I didn't think of incorporating links, but I'll see if I can put something together that way also, just to see what looks best. If I come up with something unique, I'll post it. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|