Thread-topic: JavaScript detect of Flip4Mac plugin
User-agent: Microsoft-Entourage/11.2.5.060620
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