Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Radio button doesn't work???

Reply
Thread Tools

Radio button doesn't work???

 
 
Konrad
Guest
Posts: n/a
 
      06-26-2003
I'm not sure, but I believe this could be an HTML/JavaScript issue...

I have tried putting in a radio button group with the following code:

<input type="radio" name="hi">hi <br>
<input type="radio" name="hi">bye

for some reason, it does not work on netscape!! IE works great, but
netscape (4, 6 & 7) will NOT uncheck one box when the other is
selected!!

Why is this?

The page is a php page, that has another php page included in it with
the above text... I do not believe that the way the files are
structured with php has anything to do with it, since the source on
the page comes out fine. (SEE BELOW)

Can anyone help??
--------------------------------------------------------------------------
<html>
<head>
<title>Welcome!</title>

<link rel='stylesheet' href='cme.css' type='text/css'>
<script language="JavaScript" src="./scripts.js"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000" MARGINWIDTH=0 MARGINHEIGHT=10>
<p class="text" align="left"><a href="index.htm"><img border="0"
src="hhhhhh.jpg" width="50" height="60"><img border="0"
src="kkkkkkk.jpg" width="640" height="60"></a></p>
<table width="686" cellpadding="0" cellspacing="0">
<tr>
<td width="3" height="16"></td>
<td width="85" height="16" background="mailtab.png"
align="center"><A href="./welcome.php" class="tabsw">Start
Here</A></td>
<td width="85" height="16" background="mailtab.png"
align="center"><A href="./envelope.php"
class="tabsy">Envelopes</A></td>
<td width="85" height="16" background="mailtab.png"
align="center"><A href="./reply.php" class="tabsg">Reply Env</A></td>
<td width="85" height="16" background="mailtab.png"
align="center"><A href="./inserts.php" class="tabsg">Inserts</A></td>
<td width="85" height="16" background="mailtab.png"
align="center"><A href="./colour.php" class="tabsg">Colour</A></td>
<td width="85" height="16" background="mailtab.png"
align="center"><A href="./specifics.php" class="tabsg">Order
Specifics</A></td>
<td width="85" height="16" background="mailtab.png"
align="center"><A href="./contact.php" class="tabsg">Contact
Info</A></td>
<td width="85" height="16" background="mailtab.png"
align="center"><A href="./verify.php"
class="tabsg">Quote/Verify</A></td>
<td width="3"></td>
</tr>
<tr><!-- selected = 00579d -->
<td width="3" height="3" bgcolor="#FF0000"></td>
<td width="85" height="3" bgcolor="#FF0000"></td>
<td width="85" height="3" bgcolor="#00579D"></td>
<td width="85" height="3" bgcolor="#FF0000"></td>
<td width="85" height="3" bgcolor="#FF0000"></td>
<td width="85" height="3" bgcolor="#FF0000"></td>
<td width="85" height="3" bgcolor="#FF0000"></td>
<td width="85" height="3" bgcolor="#FF0000"></td>
<td width="85" height="3" bgcolor="#FF0000"></td>
<td width="3" height="3" bgcolor="#FF0000"></td>
</tr>
<tr>
<td width="3" bgcolor="#FF0000" height="500"></td>
<td colspan="8" width="680" valign="middle" align="center"><br>

<table height="95%" width="95%" border="0">
<tr>
<td valign="top">
<table>
<tr>
<td class="contenttext" width="300" valign="top">
Will we be providing the envelopes?
</td>
<td width="30">&nbsp;</td>
<td width="75">
<input type="radio" name="provide_env" value="Y"
onClick="MM_showHideLayers('providing_env','','sho w');"><A
class="contenttext">Yes</A>
</td>
<td width="75">
<input type="radio" name="provide_env" value="N"
onClick="MM_showHideLayers('providing_env','','hid e');"><A
class="contenttext">No</A>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
</table>
<div id="providing_env" style="position: absolute; left: 35; top:
180; width: 600; height: 250; z-index: 13; visibility: hidden">
<table>
<tr>
<td class="contenttext">Please specify the size of the outgoing
envelopes: </td>
<td width="30">&nbsp;</td>
<td colspan="2" width="150">
<select name="out_env_size">
<option value="none">Please select a size</option>
<option value="9">9" x 4" (#9)</option>
<option value="10">9 1/2" x 4 1/2" (#10)</option>
<option value="2">5 7/8" x 9" (#2)</option>
<option value="4">5 3/4" x 9 1/2" (#4)</option>
<option value="7">9" x 12" (#7)</option>
<option value="1013">10" x 13" (10x13)</option>
</select>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr></tr>
<td class="contenttext">
Will we need to add your logo to the envelopes?
</td>
<td>&nbsp;</td>

<td>
<input type="radio" name="env_logo" value="Yes"><A
class="contenttext">Yes</A>
</td>
<td class="contenttext">
<input type="radio" name="env_logo" value="No" checked><A
class="contenttext">No</A>
</td>

</tr>
</table>
</div>

<P class="contenttext">&nbsp; </P>

</td>
</tr>
</table>
</td>
<td width="3" bgcolor="#FF0000"></td>
</tr>
<tr>
<td width="686" height="3" colspan="10" bgcolor="#FF0000"></td>
</tr>
</table>
</body>
</html>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Align Radio Button text and button tshad ASP .Net 6 11-26-2009 08:52 AM
Radio button that looks like a button? Martin HTML 8 11-24-2009 12:15 PM
[OT: How to broadcast an internet radio on a real radio world wide?] Jan C. Faerber HTML 0 06-30-2009 08:05 AM
ASP.NET Reset Radio Button in a group of Radio Buttons Scott D Johnson ASP .Net 1 09-27-2006 10:38 PM
Radio button List problem: How to find value of Radio button list's Selected Item using javascript?? Hiten ASP .Net Web Controls 1 05-26-2004 10:32 AM



Advertisments