navigator.plugins

Dirk Mueller mueller at kde.org
Sun Mar 21 21:43:19 GMT 2004


Hi, 

this flash detection code doesn't seem to work:

if (navigator.plugins["Shockwave Flash"]){
 var fDescription = navigator.plugins["Shockwave Flash"].description.split(" 
");

      for (var i=0; i<fDescription.length; i++){
·       ·       ·       ·       if( !isNaN(parseInt(fDescription[i])) ){
·       ·       ·       ·       ·       fVersion = parseInt(fDescription[i]);
·       ·       ·       ·       }
·       ·       ·       }


it seems the name lookup for "Shockwave Flash" isn't working for me. I tried
enumerating all the possible values with: 

           for (i in navigator.plugins) {
                alert("i is *" + i + "*");
            }


but that doesn't seem to work either. Any idea why?


Dirk




More information about the kfm-devel mailing list