November 13th, 2001 09:05 AM
Microsoft web programmers need to read a book
Someone at microsoft doesn't know how to write code...
var oDiv = document.all.tags("DIV");
if (oDiv != null)
iDiv = oDiv.length;
for (var i=0; i<iDiv; i++)
Can anyone tell me what's wrong with this FUNCTION? (Remember, functions are supposed to return something. What happens if oDiv[i].contains(x) = false?). See, this is why I like compilers because you catch these errors. The error I get is 'function does not always return a value'. So I am assuming it is NOT returning a value in my case.
This specifically caused problems with my browser (Netscape 4.03). It basically was maxing out my cpu and crashing netscape.
The way I see it is that their fancy menu bar calls this function but since my netscape doesn't support divs (i'm assuming, not quite sure though), either oDiv[i].contains(x) returns false OR oDiv = null (obviously otherwise this function would've returned something).
Not sure if this is on topic or not but I hate sloppy code, it's one of my pet peeves.
November 13th, 2001 09:08 AM
Here's a copy of the js file that I found this code in.
November 13th, 2001 06:37 PM
I think this is seperate from the MSN.com problems and the previous news, since it seems to be a scripting issue rather than a header issue, and it wasn't with MSN itself... Actually, I'll try firing up the Proxomitron and seeing if I can isolate it to either a header or a page problem.
[HvC]Terr: L33T Technical Proficiency
November 13th, 2001 07:32 PM
Originally posted by Terr
..it seems to be a scripting issue rather than a header issue...
Also I thought this was a microsoft.com issue, not msn.com?