Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Detect Windows XP SP2

Detect Windows XP SP2

Scheduled Pinned Locked Moved Web Development
javascriptcomagentic-aiquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chintoo723
    wrote on last edited by
    #1

    IE on Windows XP SP2 shows this yellow bar on the top of the webpage if it has an activex control. I want to show a message on the webpage to the end user to click on the yellow bar and install AX control, but I would like to show the message only if the client OS is Windows XP SP2. Is there a way to detect this from either the http headers, or user agent string, or from the javascript in the web page? I looked at the user agent string, but I dont see anything that tells you it is from Windows XP SP2. thanks!

    D 1 Reply Last reply
    0
    • C Chintoo723

      IE on Windows XP SP2 shows this yellow bar on the top of the webpage if it has an activex control. I want to show a message on the webpage to the end user to click on the yellow bar and install AX control, but I would like to show the message only if the client OS is Windows XP SP2. Is there a way to detect this from either the http headers, or user agent string, or from the javascript in the web page? I looked at the user agent string, but I dont see anything that tells you it is from Windows XP SP2. thanks!

      D Offline
      D Offline
      DJLarZ
      wrote on last edited by
      #2

      I think you must use JScript, and if you do, the yellow bar will show up because you are trying to access sysinfo. I think you should view the message anyway, as most xp users have sp2.:) ---- Dim Sleepy as Boolean = True If Me.Sleepy = True Then Goto Sleep End If ----

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups