Closed Bug 269288 Opened 21 years ago Closed 17 years ago

pluggedyouth.com - In the JavaScript Console it says, "Error: doc is not defined" on line 99, and the page freezes

Categories

(Tech Evangelism Graveyard :: English US, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronmg, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 On the first page at www.pluggedyouth.com it won't let you click on any of the links and none of the mouseover's work. Then when you open up the Javascript Console, it gives that error. I don't know, is there something wrong with the code? Reproducible: Always Steps to Reproduce: 1.Go to the website: www.pluggedyouth.com 2.Open up the JavaScript Console 3.There it is Actual Results: Nothing happens. You can't click on any of the links. Expected Results: You should be able to click on the links on that page, there are some picture links, and also some mouseover's. I've tried this on many people's computers and for some reason it doesn't work with Firefox. I also just upgraded to the newly released Firefox 1.0 to see if that would fix the problem, but it didn't. By the way Firefox ROCKS!!
amazingly bad browser detection: var ie = document.all ? 1 : 0 var ns = document.layers ? 1 : 0 if(ns){doc = "document."; sty = ""} if(ie){doc = "document.all."; sty = ".style"} ... function MoveToolTip(layerName, FromTop, FromLeft, e){ if(ie){ eval(doc+layerName+sty+".top = "+(eval(FromTop) + document.body.scrollTop)) } if(ns){ eval(doc+layerName+sty+".top = "+eval(FromTop)) } eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))} ^^^^ this line, and many lines like it will fail because nothing set doc in the !ie/!ns path
Assignee: bugs → english-us
Component: JavaScript Console → English US
Product: Firefox → Tech Evangelism
QA Contact: firefox.js-console → english-us
Summary: In the JavaScript Console it says, "Error: doc is not defined" on line 99, and the page freezes → pluggedyouth.com - In the JavaScript Console it says, "Error: doc is not defined" on line 99, and the page freezes
Amazingly ugly site, too, but it doesn't do what the bug says it does any more, and no more JS Console errors either. FIXED.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.