 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
jrdgames
Joined: 21 Sep 2005 Posts: 23
|
Posted: Sat Sep 06, 2008 7:33 pm Button & input type=button elements work in FF but not i |
|
|
|
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
|
Posted: Sat Sep 06, 2008 7:41 pm |
|
|
|
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
|
Posted: Sun Sep 07, 2008 8:17 pm |
|
|
|
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
|
Posted: Tue Sep 09, 2008 2:19 pm |
|
|
|
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
|
Posted: Tue Sep 09, 2008 2:47 pm |
|
|
|
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
|
Posted: Tue Sep 09, 2008 3:22 pm |
|
|
|
| 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. |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|