Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

Coldfusion – detecting Flash vs HTML5

$
0
0

Hi all – I have a dumb question – I’m not the worlds best scripter…

 

I’ve got a ColdFusion page, with an element in it that is either flash, or HTML5.

 

I need a way to detect what is happening client-side and push the client to either the Flash element, or the HTML element (or a s “you’re WAY behind the times” element if neither).

 

I’ve found, and used, modernizr, but it does things the wrong way round for me.  I need to direct my clients to flash 1st, then HTML5, then the sorry page.  Modernizr only gives me HTML 5 first then Flash, and this isn’t working for me.  the flash element is the preferred element.   I’ve screwed around with trying to “swap out” modernizr, but my glasses aren’t thick enough. 

 

Thus, I (roughly) need something that does this:

 

<cfif “flash”>

Direct them to flash page

<cfelseif “html5”>

Direct them to HTML 5 page

<cfelse>

So, how is life in the 18th century?

</cfif>

 

Help, please..  It does not have to be CFM, it can be a JavaScript or anything. 


Viewing all articles
Browse latest Browse all 6243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>