Closed
Bug 309215
Opened 19 years ago
Closed 19 years ago
attempt to use JavaScript to replace div innerHTML with menu won't work
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: wend0144, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.7) Gecko/20050422 Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.7) Gecko/20050422 My name is Kevin Wendt. I am the webmaster for www.msa.umn.edu. There is a "fill-in" menu on the left side of the screen. When you click on the "INFORMATION" image/link, javascript should be invoked, replacing the immediately following <div> with text in the form of a <ul> with several links. "RENTERS' SURVEY" and "LINKS" should do the same. Reproducible: Always Steps to Reproduce: 1.load URL 2.move cursor to "INFORMATION" image/link 3.click Actual Results: Nothing. Expected Results: Created an unordered list of links to other pages on the site (Committees, Members of Forum, etc.) Lack of use of this feature blocks surfers from navigating pages on site other than home page. I am the webmaster for this (D-1 University's student government) site. I want it to be Mozilla compliant (as it is the best browser ever). Unfortunately, this works in IE and not Mozilla/firefox. Any help will be immediately implemented. But I'm a student and TA and an officer of the student government here, etc. I need some help figuring this out. THANKS.
Comment 1•19 years ago
|
||
Whatever you expect from us, with a current build you see this in the JavaScript Console (it works there, but it won't work in FF 1.0.x or Mozilla 1.7.x): Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead. Source File: http://www.msa.umn.edu/scripts/ Line: 105 Your code directly references elements like this: toc.innerHTML, which is not a standard way. Maybe read a bit under http://www-128.ibm.com/developerworks/web/library/wa-ie2mozgd/ under "General cross-browser coding tips" or just google a bit around, basically all you got to do is insert some if checks what a browser supports and then execute the given method which works in (BrowserA) or (BrowserB).
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•