Closed Bug 241115 Opened 20 years ago Closed 18 years ago

Aldo Shoes main page doesn't work in Mozilla

Categories

(Tech Evangelism Graveyard :: English Other, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: neil, Unassigned)

References

()

Details

When I go to aldo shoes web site I get this javascript error:

Error: canadaLang is not defined
Source File: http://www.aldoshoes.com/aldoshoes/
Line: 55
I see

Error: syntax error
Source File: http://www.aldoshoes.com/aldoshoes/_Static/javascript/dhtml.js
Line: 41, Column: 1
Source Code:
 = LA[x]

Note that LA is a NodeList not an element which means LA.id is undefined.  

function ns6_initlayers()
	{
	LA = document.getElementsByTagName("DIV");
	for(x=0;x<LA.length;x++)
		{
		eval(LA[x].id + " = LA[x]");
		LA[x].init = mapping_ns6;
		LA[x].init();
		}
	windowwidth = window.innerWidth;
	windowheight = window.innerHeight;
	return LA.length;
	}

Neil, please send in a complaint and reference this bug.
WFM
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Works for you?  How?  It's still firing off javascript errors for me with FF 0.9.2
LA is a NodeList but LA[x] is a DIV Element. The problem is they iterate over
all DIVs but not all have ID attributes. 

Error: syntax error
Source File: http://www.aldoshoes.com/aldoshoes/_Static/javascript/dhtml.js
Line: 41, Column: 1
Source Code:
 = LA[x]

This error is due to global exposure of elements with id's which we do not support.

Error: canadaLang is not defined
Source File: http://www.aldoshoes.com/aldoshoes/#
Line: 55

Error: canadaLang is not defined
Source File: http://www.aldoshoes.com/aldoshoes/#
Line: 63

=> REOPEN
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
This seems to be working now.
Status: REOPENED → RESOLVED
Closed: 20 years ago18 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.