User Browser Detection

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default User Browser Detection

    Hello all,
    I was wondering if there was a way in coldfusion to detect what browser and
    version a user is on?

    I have a page that has a flash movie and a DHTML menu. In netscape 6 and in
    opera 7 the menu is hidden behind the flash movie. What I would like to do is
    detect if a user has either of these browsers and display a static image in
    place of the flash movie. I know how to code the if else statement but unsure
    how to find what browser they are on.

    Thanks for your help in advance.
    jlmoshier

    jmoshier Guest

  2. Similar Questions and Discussions

    1. What if user closes the Browser
      I m working on a simple text chat through Flash Communication server.Its working well. One of the issue that is creating the trouble is -- A...
    2. if user closes browser window
      hi, I need to save some values in a database when the user closes an unfinished flash using the "X" button of the explorer. I'm making tests for...
    3. flash detection and browser 'Back' button problem...
      Hello, One of my clients has asked me a difficult problem this week... how to set up his website so viewers can use their browser 'Back' button...
    4. Internet Browser Detection
      How can I detect what browser type my users are using, currently with my asp server variables I only detect Netscape and Mozilla as U, how can I get...
    5. Confirm user wants to close browser window
      Please don't. It's very simple (window's onclose event) but don't do it. Unless your users are total morons who manage to click that tiny X by...
  3. #2

    Default Re: User Browser Detection

    [url]http://www.moock.org/webdesign/flash/detection/moockfpi/[/url]
    s0mus Guest

  4. #3

    Default Re: User Browser Detection

    s0mus,
    Thanks for the reply but I am trying to detect a certain browser not if they have a certain flash player.

    Thanks,
    jlmoshier
    jmoshier Guest

  5. #4

    Default Re: User Browser Detection

    If your problem is that your dhtml is behind flash in Opera or NS, than this
    solution can help you too! I have the same problem for a project so i found
    this solution and it works fine in IE, FF, Opera, Ns... You need special
    parameters for the flash object! You need the following: <param
    name='wmode' value='transparent' /> and in the embed tag
    wmode='transparent' You can test it online here:
    [url]http://www.carlebachmuehle.de[/url] <object
    classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
    codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    rsion=6,0,0,0' width='270' height='400'> <param
    name='allowScriptAccess' value='sameDomain' /> <param name='movie'
    value='galerie.swf' /> <param name='quality' value='high' />
    <param name='menu' value='false' /> <param name='wmode'
    value='transparent' /> <embed src='galerie.swf' quality='high'
    allowscriptaccess='sameDomain' wmode='transparent'
    pluginspage='http://www.macromedia.com/go/getflashplayer'
    type='application/x-shockwave-flash' width='270' height='400'></embed>
    </object> Felix

    Cruze Guest

  6. #5

    Default Re: User Browser Detection

    Cruze,
    I went to go look at your site in opera 7 and in netscape 6.2 and your
    dropdown menus are behind the flash image. I do have the transparent value for
    wmode set in my flash file but even on macromedia's site it says this option
    only works in netscape 7+ and not in opera at all.
    Here is the link
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14201[/url]

    Thanks for your help
    jlmoshier

    jmoshier Guest

  7. #6

    Default Re: User Browser Detection

    If anyone is interested I found a way to get the browser and version of a user.
    Here is what I did to get Netscape 6 and opera to show a static image instead
    of my flash file.

    Thanks to everyone for all your help.
    jlmoshier

    <!---Get the users browsers information--->
    <cfset Variables.userAgent = #CGI.HTTP_USER_AGENT#>

    <cfif (FindNoCase("netscape", Variables.userAgent) AND
    FindNoCase("Netscape6/", Variables.userAgent)) OR FindNoCase("opera",
    Variables.userAgent)>
    image here
    <cfelse>
    flash here
    </cfif>

    jmoshier Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139