Closed Bug 270875 Opened 20 years ago Closed 17 years ago

ei.com - navigation bar does not load so I cannot navigate in to web site

Categories

(Tech Evangelism Graveyard :: English US, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: johninriva, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

navigation bar does not load so I cannot navigate in to web site.  Javascript or
some other type of progam does not load.  It just says Navigation Loading . . .
and stalls out.

Reproducible: Always
Steps to Reproduce:
1. Go to www.ei.com
2.
3.

Actual Results:  
navigation bar does not load so I cannot navigate in to web site.  Javascript or
some other type of progam does not load.  It just says Navigation Loading . . .
and stalls out.

Expected Results:  
Navigation bar loads with links to other parts of the web site.  E.g.,
Professionals, Contact Us, etc.
var isNav4, isIE4
var insideWindowWidth
var range = ""
var styleObj = ""
if (navigator.appVersion.charAt(0) == "4") {
	if (navigator.appName == "Netscape") {
		isNav4 = true
		insideWindowWidth = window.innerWidth
	} else {
		isIE4 = true
		range = "all."
		styleObj = ".style"
	}
}

// Convert object name string or object reference
// into a valid object reference
function getObject(obj) {
	var theObj
	if (typeof obj == "string") {
		theObj = eval("document." + range + obj + styleObj)
	} else {
		theObj = obj
	}
	return theObj
}

// Setting the visibility of an object to visible
function show(obj) {
	var theObj = getObject(obj)
	theObj.visibility = "visible"
}

Function show is called to show the menu, and it passes a string to getObj,
there the if statement will be true and depending if its NN4 or IE it will
either bild 
document.all.objectName.style
or just
document.objName

Mozilla does understand document.all in quirks mode, but the problem here is
that the browser sniffer uses if(navigator.appVersion.charAt(0) == "4") which
will be false. Therefore the range and styleObj will be "".

--> Tech Evangelism
Assignee: firefox → english-us
Component: General → English US
OS: Windows ME → All
Product: Firefox → Tech Evangelism
QA Contact: firefox.general → english-us
Hardware: PC → All
Summary: navigation bar does not load so I cannot navigate in to web site → ei.com - navigation bar does not load so I cannot navigate in to web site
WFM, Firefox 1.5.0.6.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.