Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorashtheory
    • CommentTimeSep 24th 2006
     permalink
    I am trying to develop a way that you can check if a user has Flash Enabled in IE6 and display it for them to see. I have found a way to get it detected with firefox, but IE displays nothing currently. Because of this i instead wrote a simple line that displays "Flash info currently unavailable" for now.. does anyone know of a simple way to detect if a user has the flash Plugin using IE (i have found one but it uses VBscript which i dont understand and when copied from the source does not work on my site).

    You can view what i have so far here... Browser Detection Agent

    I would also like to know if anyone knows of what i can do so that it will detect flash in both IE or Firefox... and send back a version number if it is found as well.

    Thanks
    • CommentAuthorashtheory
    • CommentTimeSep 24th 2006
     permalink
    The link for the one using Javascript and VBscript is here Javascript - Flash Detect ... but i would like to detect this using only the DOM navigator object so i can add it to the current table work i have done (for a cleaner code that is easier to read)
    • CommentAuthorpagol
    • CommentTimeSep 24th 2006
     permalink
    i know and i did for that many site.. now i'm sick.. i will post tomorrow i hope. if i forget then will PM me. thanks.
    •  
      CommentAuthorJohnRiv
    • CommentTimeSep 25th 2006
     permalink
    • CommentAuthormista3
    • CommentTimeSep 26th 2006
     permalink
    +1 for SWFObject, no need for anything else imo :)
    • CommentAuthorashtheory
    • CommentTimeSep 28th 2006
     permalink
    i want to detect it by javascript only using the DOM nav if possible... not a flash file.. but thanks anyway
    • CommentAuthorashtheory
    • CommentTimeSep 28th 2006
     permalink
    Pagol if you check this... i have no idea how to PM you.. although i would appreciate your help
    •  
      CommentAuthorJohnRiv
    • CommentTimeSep 29th 2006 edited
     permalink
    You can't detect Flash in IE using the navigator object.

    navigator.plugins is just an empty array in Internet Explorer. You can verify that by running this in the IE address bar:

    javascript:alert(navigator.plugins.length)

    as you see, the code returns 0 as the length of the array.

    SWFObject uses only JavaScript to detect Flash (no VBscript), it can send you back the version number (see http://blog.deconcept.com/swfobject/flashversion.html), and the code is clean (just include the external swfobject.js file in your document and then it's only a few lines of JS to detect Flash, get it's full version number, and/or embed the Flash movie). I really think you should give it another try ;-)
  1.  permalink
    +1 for SWFObject. I agreed with JohnRiv's comments and you should at least try it.
    • CommentAuthorVivekSobi
    • CommentTimeOct 1st 2006
     permalink
    If your site uses ASP/ASP.NET or ColdFusion I highly recommend you give BrowserHawk a look.


    I just look at the BrowserHawk site and found this Flash detect tutorial worth a good look.


    What is nice is that it detects Flash for you on the server end so before I send any content to client I already know what I should send. It works very well and unlike my last sniffer script seems to be working perfectly for everyone (we have very large ecommerce site and no problems testing millions of peoples. Plus I use it for other testing like the detecting users connection speed. I am happy with it I give it A++. It is not free but my department bought copies :)

Add your comments
    Username Password
  • Format comments as (Help)