Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
jmoshier #1
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
-
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... -
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... -
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... -
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... -
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... -
s0mus #2
Re: User Browser Detection
[url]http://www.moock.org/webdesign/flash/detection/moockfpi/[/url]
s0mus Guest
-
jmoshier #3
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
-
Cruze #4
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
-
jmoshier #5
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
-
jmoshier #6
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



Reply With Quote

