GeckoActiveXObject == 'undefined' for NS 7.1

S

scott simpson

ns 7.1 on win2k:

i am trying to sniff out the (ax) version of the NS browsers and am
not having any luck. both of the following alert 'undefined':

alert('GeckoActiveXObject=' + typeof GeckoActiveXObject);
alert('GeckoActiveXObject=' + window.GeckoActiveXObject);

it seems very straight forward but the results are puzzling. has
anyone had this same issue? thoughts/suggestions?

cheers...
 
J

Janwillem Borleffs

scott simpson said:
i am trying to sniff out the (ax) version of the NS browsers and am
not having any luck. both of the following alert 'undefined':

alert('GeckoActiveXObject=' + typeof GeckoActiveXObject);
alert('GeckoActiveXObject=' + window.GeckoActiveXObject);

Testing with Mozilla 1.5 on WinXP I get the expected "function" on the
first. The second throws an error because Mozilla cannot cast an object to a
primitive type.

Changing it into:
alert('GeckoActiveXObject=' + (window.GeckoActiveXObject ? 1 : 0) );

fixed this.


JW
 
J

Janwillem Borleffs

Janwillem Borleffs said:
Testing with Mozilla 1.5 on WinXP I get the expected "function" on the
first. The second throws an error because Mozilla cannot cast an object to a
primitive type.

That sounds silly when you read it back... I meant that the
window.GeckoActiveX function couldn't be converted for displaying in the
alert box.


JW
 
D

DU

scott said:
ns 7.1 on win2k:

i am trying to sniff out the (ax) version of the NS browsers and am
not having any luck. both of the following alert 'undefined':

alert('GeckoActiveXObject=' + typeof GeckoActiveXObject);
alert('GeckoActiveXObject=' + window.GeckoActiveXObject);

it seems very straight forward but the results are puzzling. has
anyone had this same issue? thoughts/suggestions?

cheers...

The answer to your query was available at this precise url:

Windows Media Player in Netscape 7.1
Client-side Detection Using JavaScript Objects
http://devedge.netscape.com/viewsource/2003/windows-media-in-netscape/

Janwillem B. answered you correctly btw.

DU
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top