Because it is always nice to get a head start by trying things before they are released.  Anyway, it seems to work just fine with everything I've tired so far.  Same you can't same the same about NS6 which is a release product.
-----Original Message-----
From: Doug Melvin [mailto:[EMAIL PROTECTED]]
Sent: 27 March 2001 22:30
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Dev] IE 6 Browser.js temporary fix

why are we even worrying about IE6?
It's not an official release..
----- Original Message -----
Sent: Tuesday, March 27, 2001 12:07 PM
Subject: [Dynapi-Dev] IE 6 Browser.js temporary fix

IE 6 throws an error elm.style is null or not an object. Here is a small VERY temporary fix to get things working in IE6 (at least it works for me). IE6 seems to act more like ie5 than ie5.5, so here's my new browser.js:
 
---
/*
   DynAPI Distribution
   Browser Class
 
   The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
*/
function Browser() {
 var b=navigator.appName;
 if (b=="Netscape") this.b="ns";
 else if (navigator.userAgent.indexOf("Opera")>0) this.b = "opera";
 else if (b=="Microsoft Internet Explorer") this.b="ie";
 if (!b) alert('Unidentified browser./nThis browser is not supported,');
 this.version=navigator.appVersion;
 this.v=parseInt(this.version);
 this.ns=(this.b=="ns" && this.v>=4);
 this.ns4=(this.b=="ns" && this.v==4);
 this.ns5=(this.b=="ns" && this.v==5);
 this.ie=(this.b=="ie" && this.v>=4);
 this.ie4=(this.version.indexOf('MSIE 4')>0);
 this.ie5=(this.version.indexOf('MSIE 5')>0);
 this.ie55=(this.version.indexOf('MSIE 5.5')>0);
 this.ie6=(this.version.indexOf('MSIE 6')>0);            // this is it
 if (this.ie6) this.ie5=true;                                            // this is it
 this.opera=(this.b=="opera");
 this.dom=((document.createRange&&(document.createRange().createContextualFragment))?true:false);
 var ua=navigator.userAgent.toLowerCase();
 if (ua.indexOf("win")>-1) this.platform="win32";
 else if (ua.indexOf("mac")>-1) this.platform="mac";
 else this.platform="other";
}
is = DynAPI.browser = new Browser();

Reply via email to