SP2 Detection Code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • infecto
    Confirmed User
    • May 2003
    • 1697

    #1

    SP2 Detection Code?

    Whats the best/easiest way to detect if a surfer is using SP2. I am not sure of the exact code but it has to be possible no?
  • SmokeyTheBear
    ►SouthOfHeaven
    • Jun 2004
    • 28609

    #2
    If the user agent string contains "SV1", Internet Explorer is in SP2.
    PHP Code:
    
    
    var g_fIsSP2 = false;
    function browserVersion()
    {
      g_fIsSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
      if (g_fIsSP2)
        {
          //This browser is Internet Explorer in SP2. 
        }
      else
        {
          //This browser is not Internet Explorer in SP2.
        }
    } 
    
    hatisblack at yahoo.com

    Comment

    • SmokeyTheBear
      ►SouthOfHeaven
      • Jun 2004
      • 28609

      #3
      The code all fucked up because the gfy mods couldn't figure out how to parse properly.
      hatisblack at yahoo.com

      Comment

      • infecto
        Confirmed User
        • May 2003
        • 1697

        #4
        Originally posted by SmokeyTheBear
        The code all fucked up because the gfy mods couldn't figure out how to parse properly.
        smokey is there anyway you can email to me [email protected] or ICQ (146664255)?

        Comment

        • infecto
          Confirmed User
          • May 2003
          • 1697

          #5
          Nm. Just reread what you said and got the code now. Thanks man.

          Comment

          Working...