HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Radio button that launches pop up window
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
sonny105



Joined: 04 Jun 2007
Posts: 8

PostPosted: Mon Jun 04, 2007 12:31 pm     Radio button that launches pop up window Reply with quote

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

PostPosted: Mon Jun 04, 2007 1:13 pm     Reply with quote

First off this part
Code:
<form="name">
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

PostPosted: Mon Jun 04, 2007 6:19 pm     Reply with quote

Thanks for the correction and information.
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Tue Jun 05, 2007 4:54 am     Reply with quote

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

PostPosted: Tue Jun 05, 2007 6:36 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial