From: Michael Br. <mb...@st...> - 2001-01-22 23:49:04
|
The DynAPI.include() function in today's snapshot crashes the MacOS when used in IE5. After countless restarts (this wasn't really funny) i eventually figured out what it is. I tracked the error to the following line: if (path[path.length-1] != "/") path += "/"; The problem is that in IE5 on the mac you can't access the characters of a string using string[position]. var s = 'blablablabla'; alert(s[0]) always gives you 'undefined', I know this is weird, in all other browsers I've tested it works. So the condition in the above line is always true and the '/' is appended to path even if there is one already at the end of the string. As far as I can tell it is this second slash that makes IE5 and the MacOS crash when the src of the file to load then is written to the document. To make it work in IE5 on the mac I suggest replacing it with if (path.substr(path.length-1) != "/") path += "/"; BTW: After i fixed this i found out that the creation of DynLayers doesn't work at all (IE5), i got an error saying that 'elm' is not an object at line 147, but i'm just to tired to investigate in it, maybe i'll have a look at it tomorrow. -- Michael |