IE 5 Mac patch [message #18769] |
Tue, 08 June 2004 15:10 |
Gribnif
Messages: 82 Registered: December 2003
Karma: 0
|
Member |
|
|
IE 5.2.3 on the Mac was throwing a Javascript error every time I loaded a page. I fixed it this way:
--- lib.js 2004-04-20 13:39:06.000000000 -0400
+++ cob-forum/lib.js 2004-06-08 11:06:16.000000000 -0400
@@ -15,6 +15,7 @@
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
OPERA = navigator.userAgent.indexOf("Opera") > -1 ? 1 : 0;
+MAC = navigator.userAgent.indexOf("Mac") > -1 ? 1 : 0;
/* edit box stuff */
function insertTag(obj, stag, etag)
@@ -208,7 +209,7 @@
window.location.hash = phash;
}
-if (!OPERA && navigator.appName == "Microsoft Internet Explorer") {
+if (!OPERA && navigator.appName == "Microsoft Internet Explorer" && !MAC) {
window.attachEvent("onload", ie_png_hack);
}
|
|
|
Re: IE 5 Mac patch [message #18770 is a reply to message #18769] |
Tue, 08 June 2004 15:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Are you using the latest lib.js (without the tricky png hack) or the old one which used active X to emulate png transparency support?
FUDforum Core Developer
|
|
|
Re: IE 5 Mac patch [message #18774 is a reply to message #18770] |
Tue, 08 June 2004 15:28 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Thanks for the fix suggestion, I had a Mac user test current lib.js and the problem seems to have affected latest CVS. The fix has been applied.
FUDforum Core Developer
|
|
|