navigator.plugins

Koos Vriezen koos.vriezen at xs4all.nl
Mon Mar 22 17:45:50 GMT 2004


On Sun, Mar 21, 2004 at 10:43:19PM +0100, Dirk Mueller wrote:
> 
> 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?

Name lookup should work again in HEAD.
The enumerating method should return these (mozilla)
 length
 item
 namedItem
 refresh
but this doesn't seem to be implemented.

Koos




More information about the kfm-devel mailing list