From: Michael P. <mp...@ph...> - 2001-01-23 00:52:46
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> oops. i never noticed that, sorry. I'm surprised it didn't crash any other browser. <p>Michael Bürge wrote: <blockquote TYPE=CITE>The DynAPI.include() function in today's snapshot crashes the MacOS when used in IE5. <p>After countless restarts (this wasn't really funny) i eventually figured out what it is. <br>I tracked the error to the following line: <br>if (path[path.length-1] != "/") path += "/"; <p>The problem is that in IE5 on the mac you can't access the characters of a string using <i>string[position]</i>. <br><i>var s = 'blablablabla'; alert(s[0]) </i>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 <i>path </i>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. <br>To make it work in IE5 on the mac I suggest replacing it with <br>if (path.substr(path.length-1) != "/") path += "/"; <p>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. <p>-- <br>Michael</blockquote> -- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </html> |