browser hawk help can anyone help?

Results 1 to 2 of 2

Thread: browser hawk help can anyone help?

  1. #1
    a mad sticky finga Guest

    Default browser hawk help can anyone help?

    I have made a detection form using the browserhawk object, my problem is i want to detect flash and the version and then if user has flash 5 they go to the site if they dont they go to another page which says they have 4 or less and need to upgrade. the problem is the version uses a build number and this is a string. i am having problems simply using the code to get the first number of the string PLEASE PLEASE HELP!!! <BR><BR><BR>here is what i got... <BR><BR><BR>&#060;% set bhObj = Server.CreateObject("cyScape.browserObj") <BR>bhObj.GetExtProperties <BR><BR>flash = bhObj.Plugin_Flash <BR>if flash = -1 then <BR>f = 0 <BR>elseif flash = 1 AND ("Version ") = "5" then <BR>f = 1 <BR>end if <BR>%&#062; <BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Don't know much about browserHawk, but...

    to get the first number in a string, then convert it to a number for easy use, just do:<BR><BR>cint(left(bhObj.Plugin_Flash, 1))<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts