Help - Search - Members - Calendar
Full Version: Wacky Firefox Problem
HTMLHelp Forums > Programming > Client-side Scripting
Nick



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?
Darin McGrew
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.
Nick
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)
Nick



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?
Darin McGrew
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 standards mode, 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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.