By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

GeckoActiveXObject == 'undefined' for NS 7.1

P: n/a
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...
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"scott simpson" <si*****@yahoo-inc.com> schreef in bericht
news:68**************************@posting.google.c om...

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

Jul 20 '05 #2

P: n/a

"Janwillem Borleffs" <jw@jwscripts.com> schreef in bericht
news:3f*********************@news.wanadoo.nl...

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

Jul 20 '05 #3

P: n/a
DU
scott simpson wrote:
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/viewsour...a-in-netscape/

Janwillem B. answered you correctly btw.

DU
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.