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. General Programming
  3. C / C++ / MFC
  4. CHtmlView and IE version

CHtmlView and IE version

Scheduled Pinned Locked Moved C / C++ / MFC
javascriptadobequestionannouncement
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.
  • B Offline
    B Offline
    BadJerry
    wrote on last edited by
    #1

    When using CHtmlView (and using Javascript to get the broswer version), I get version 4( corresponding to IE4 to IE6)... whereas I would like the latest installed version to use... Does anyone know how/if this is possible? I am doing this so I can run flash controls in the control - and so that they can call Jasvascript functions... Any pointer for that would be welcome too... it seems only possible in http but not on local files... Thanks in advance! Jerome

    B 1 Reply Last reply
    0
    • B BadJerry

      When using CHtmlView (and using Javascript to get the broswer version), I get version 4( corresponding to IE4 to IE6)... whereas I would like the latest installed version to use... Does anyone know how/if this is possible? I am doing this so I can run flash controls in the control - and so that they can call Jasvascript functions... Any pointer for that would be welcome too... it seems only possible in http but not on local files... Thanks in advance! Jerome

      B Offline
      B Offline
      Bacon Ultimate Cheeseburger
      wrote on last edited by
      #2

      BadJerry wrote:

      using Javascript to get the broswer version

      The actual version of the browser is contained in the navigator.userAgent property and is typically extracted with a regular expression. For instance one of my test machines is still running Internet Explorer 6.0. The userAgent field returns the following: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) To extract the version information you can use the following:

      var exp = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
      var version = 0;
      if (null != exp.exec(navigator.userAgent)) {
      version = parseFloat( RegExp.$1 )
      }

      1300 calories of pure beef goodness can't be wrong!

      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