Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ Wacky Firefox Problem

Posted by: Nick Dec 12 2006, 07:10 PM




So dig this -

I have a little countdown script that I modified. Here's my test:

http://truths.treehugger.com/test.php

It seems to work great on all browsers.

But on the main page - http://truths.treehugger.com/

My little clock dissapears in FireFox! Works great in Opera and IE. Although in Opera, there's a span problem on the seconds. Must be related to the FF problem, but I'm baffled.

Any thoughts?

Posted by: Darin McGrew Dec 12 2006, 07:54 PM

Sounds like your different scripts conflict over variables with common names to me. If you figure out the variables they're fighting over, then you can rename them in one of the scripts to eliminate the conflict.

Posted by: Nick Dec 13 2006, 04:01 PM

QUOTE(Darin McGrew @ Dec 12 2006, 07:54 PM) *

Sounds like your different scripts conflict over variables with common names to me. If you figure out the variables they're fighting over, then you can rename them in one of the scripts to eliminate the conflict.


Thanks!

BUt, Apparantly not. I eliminated all other javascript and it still conks out - but only in FireFox. Could it be CSS related? (Did manage to fix the Opera problem)

Posted by: Nick Dec 13 2006, 04:07 PM




Ha! I caught it... it's a DOCtype thing... If I eliminate the DOCType all together then it works... I realize I shouldn't do that, but can you suggest a doctype that would allow this?

Posted by: Darin McGrew Dec 13 2006, 04:34 PM

XHTML is case sensitive, and all element and attribute names must be in lower case. If you use an XHTML doctype declaration that puts some modern browsers into http://hsivonen.iki.fi/doctype/, then they will enforce the case sensitivity. You could use an HTML doctype (and convert your XHTML syntax to HTML syntax). Or you could fix the case mismatches and use an XHTML doctype. Although I don't recommend using XHTML unless there's a specific benefit to you in doing so.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)