GeckoActiveXObject == 'undefined' for NS 7.1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • scott simpson

    GeckoActiveXObject == 'undefined' for NS 7.1

    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('GeckoAct iveXObject=' + typeof GeckoActiveXObj ect);
    alert('GeckoAct iveXObject=' + window.GeckoAct iveXObject);

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

    cheers...
  • Janwillem Borleffs

    #2
    Re: GeckoActiveXObj ect == 'undefined' for NS 7.1


    "scott simpson" <simpson@yaho o-inc.com> schreef in bericht
    news:68aa0f5d.0 312171100.505c0 0ae@posting.goo gle.com...[color=blue]
    >
    > 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('GeckoAct iveXObject=' + typeof GeckoActiveXObj ect);
    > alert('GeckoAct iveXObject=' + window.GeckoAct iveXObject);
    >[/color]

    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('GeckoAct iveXObject=' + (window.GeckoAc tiveXObject ? 1 : 0) );

    fixed this.


    JW



    Comment

    • Janwillem Borleffs

      #3
      Re: GeckoActiveXObj ect == 'undefined' for NS 7.1


      "Janwillem Borleffs" <jw@jwscripts.c om> schreef in bericht
      news:3fe0ca63$0 $188$1b62eedf@n ews.wanadoo.nl. ..[color=blue]
      >
      > 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[/color]
      a[color=blue]
      > primitive type.
      >[/color]

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


      JW



      Comment

      • DU

        #4
        Re: GeckoActiveXObj ect == 'undefined' for NS 7.1

        scott simpson wrote:
        [color=blue]
        > 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('GeckoAct iveXObject=' + typeof GeckoActiveXObj ect);
        > alert('GeckoAct iveXObject=' + window.GeckoAct iveXObject);
        >
        > it seems very straight forward but the results are puzzling. has
        > anyone had this same issue? thoughts/suggestions?
        >
        > cheers...[/color]

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

        Windows Media Player in Netscape 7.1
        Client-side Detection Using JavaScript Objects


        Janwillem B. answered you correctly btw.

        DU

        Comment

        Working...