Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JavaScript detect of Flip4Mac plugin



Hi all,

I've been trying to get some help for a piece of JavaScript in a web page
(actually it will be used as part of a Mac widget) that will detect if a
user as the Flip4Mac (www.flip4Mac) QT plugin installed on their machine.

I've been posting in the developer area of the Flip4Mac discussion site, but
after two months there hasn't really been a solution. I wouldn't have
thought it was hard, but I'm no coder, so I'm turning to this list for help.

This was the last suggestion for code....

// 
function checkPlayer() {
for (i = 0; i < navigator.plugins.length; i++) {
if (navigator.plugins.name.indexOf("Flip4Mac") != -1 &&
navigator.plugins.name.indexOf("Plug") != -1) {
//alert(navigator.plugins.filename);
hasPlugIn = true; 
alert("Flip4Mac found");
} else { 
alert("No Flip4Mac");
} 
} 
} 


But in testing, I get an "undefined value" error on this line....

if (navigator.plugins.name.indexOf("Flip4Mac") != -1 &&
navigator.plugins.name.indexOf("Plug") != -1) {


Cheers,

Phil
-------------------------------------------------------------
Bluengrey.com 
Website and Multimedia development
http://www.bluengrey.com

NZMac.com 
http://www.nzmac.com
Supporting the New Zealand Mac Community
-------------------------------------------------------------


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.