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!
Button & input type=button elements work in FF but not i
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
jrdgames



Joined: 21 Sep 2005
Posts: 23

PostPosted: Sat Sep 06, 2008 7:33 pm     Button & input type=button elements work in FF but not i Reply with quote

Hi everyone, This is a strange problem.

The <button..> and <input type="button"..> elements show up and work in Firefox but not in IE on my page (PHP script) but they look fine on other websites in both browsers.

Can someone please help me fix this problem?
Heres the page: http://jrdltd.ath.cx/beta/fp/
I guess I could use links but they wouldn't look as good unless I could make them look like buttons.

Thanks for your help in advance.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Sat Sep 06, 2008 7:41 pm     Reply with quote

I'm surprised that FF allows it to work, but IE has a hard time when a page kicks it into Quirks Mode. Correct the following coding errors and be sure to insert a proper DocType!

HTML Errors

Way too many coding errors.
jrdgames



Joined: 21 Sep 2005
Posts: 23

PostPosted: Sun Sep 07, 2008 8:17 pm     Reply with quote

Ok, I am down to 101 errors and they are all related to the javascript that I am using.

Amazing, it is working on IE now. So when IE goes into "quirks mode" it starts to mess things up? I guess i'll have to look at the validator more often when IE stops working.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Tue Sep 09, 2008 2:19 pm     Reply with quote

Any browser in Quirks Mode does not parse code the way you want it to. Sometimes Quirks Mode is used on purpose, but best not to use it.

Instead of using a XHTML 1.0 Transitional doctype, you could try using a lower doctype to see if validator quits flagging the JS errors.
jrdgames



Joined: 21 Sep 2005
Posts: 23

PostPosted: Tue Sep 09, 2008 2:47 pm     Reply with quote

Thank you for your help. I tried the other doctypes but they seemed to be putting up errors about not knowing the type attribute of script and style and not even knowing script and other errors. I think it is probably best to stay with something that works. with minimal errors.

btw. why does the validator not like the onload attribute for body?
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Tue Sep 09, 2008 3:22 pm     Reply with quote

Opening body tag with your doctype is not allow to contain anything. There's probably a workaround for it, but I wouldn't worry about the errors flagged as long as all works the way you want with present doctype.
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