Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > HTML Programming

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-06-2008, 02:57 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 790
Last Blog:
Programming "Just a ...
Credits: 102
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default HTML and Firefox errors..

For my site I have a few radio buttons, and in IE6 it works fine, you can select one and when you select one, the other one goes blank, works great.

In firefox, it wont let me select any of them...

anyone know how to fix this issue? Here is the code.. pretty basic.

PHP Code:
                <label>
                <
input name="radiobutton" type="radio" value="radiobutton" checked>
                
Basic 
                
<input name="radiobutton" type="radio" value="radiobutton">
                
Business 
                
<input name="radiobutton" type="radio" value="radiobutton">
                
Pro</label
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-07-2008, 02:14 AM
orjan's Avatar   
orjan orjan is offline
Programmer
 
Join Date: Sep 2007
Location: Sunne, Värmland, Sweden
Age: 33
Posts: 159
Credits: 187
Rep Power: 6
orjan will become famous soon enoughorjan will become famous soon enough
Default Re: HTML and Firefox errors..

I just read on a page that the <label> tag has a required parameter

Code:
<LABEL FOR="moreinfo">
send more information 
<INPUT NAME="moreinfo" TYPE=CHECKBOX ID="moreinfo">
</LABEL>
some info cut from a website (www.htmlcodetutorial.com):

Quote:
If the form element that should be ***ociated with the text in <LABEL ...> can't be contained within <LABEL ...>, such as when the form element in another table cell, use FOR. The value of FOR is the ID of the form element. Note that it is not the name of the field (as given with the NAME attribute) it is the ID as given with the ID attribute.

try this and maybe it will work better?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2008, 06:15 AM
chili5's Avatar   
chili5 chili5 is online now
Code Warrior
 
Join Date: Mar 2008
Age: 15
Posts: 3,446
Credits: 310
Rep Power: 30
chili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to all
Default Re: HTML and Firefox errors..

You have to give each input an id and then in your label

Code:
for="id"
This code should work for you.
Code:
<label for="basic">
<input name="radiobutton" type="radio" value="radiobutton" checked="checked" id="basic" />Basic </label>
<label for="business">
<input name="radiobutton" type="radio" value="radiobutton" id="business" /> Business </label>
<label for="pro"><input name="radiobutton" type="radio" value="radiobutton" id="pro" /> Pro</label>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 06:47 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 7,432
Last Blog:
Web slideshow in JavaS...
Credits: 1,323
Rep Power: 61
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: HTML and Firefox errors..

It's a shame IE and Firefox don't render pages the same way. Make sure you test your page in Opera and Safari as well (though 97% of people use IE 7 or Firefox 2).
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-07-2008, 03:39 PM
chili5's Avatar   
chili5 chili5 is online now
Code Warrior
 
Join Date: Mar 2008
Age: 15
Posts: 3,446
Credits: 310
Rep Power: 30
chili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to all
Default Re: HTML and Firefox errors..

Yep It's a shame but theirs nothing we can do about it.

I only test in firefox with an add-on to use the internet explorer engine. I don't test in Safari or opera, I know i should but i just ***ume that it's going to work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 04-16-2008, 12:26 AM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 790
Last Blog:
Programming "Just a ...
Credits: 102
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: HTML and Firefox errors..

the problem was they were all in one label... I just took off the label tags..

problem solved
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-16-2008, 12:41 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 7,432
Last Blog:
Web slideshow in JavaS...
Credits: 1,323
Rep Power: 61
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: HTML and Firefox errors..

Good for you!
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-16-2008, 01:02 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 790
Last Blog:
Programming "Just a ...
Credits: 102
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: HTML and Firefox errors..

are you stalking me? lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-16-2008, 01:09 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 7,432
Last Blog:
Web slideshow in JavaS...
Credits: 1,323
Rep Power: 61
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: HTML and Firefox errors..

Why yes... butter boobs
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-05-2008, 07:39 PM
Kaabi's Avatar   
Kaabi Kaabi is offline
Programming God
 
Join Date: Jul 2006
Posts: 884
Credits: 0
Rep Power: 14
Kaabi is on a distinguished road
Default Re: HTML and Firefox errors..

I've had problems with Firefox and IE reading pages differently. One time my website worked perfectly in Firefox but was totally messed up in IE. It was quite frustrating.
__________________
Cheap Airsoft Guns

If you are looking for high-quality, yet cheap, airsoft guns, then check out MrAirsoft.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Critical Firefox hole allows p***word theft Jordan Technology Ramble 31 01-22-2007 09:48 AM


All times are GMT -5. The time now is 10:55 AM.

Contest Stats

Xav ........ 1323.18
MeTh0Dz|Reb0rn ........ 1053.7
morefood2001 ........ 879.43
John ........ 877.37
marwex89 ........ 869.98
WingedPanther ........ 834.24
Brandon W ........ 749.07
chili5 ........ 310.39
Steve.L ........ 241.84
dcs ........ 216.02

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads