faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 6 people (33%) answered Yes
Recently 2 of 6 people (33%) answered Yes

Entry

How can I detect if asf active control for playing asf file is installed in client?

Sep 12th, 2008 15:18
jason smith, ha mo, Colin Fraser, meng xianhui,


Personally, I dont have that particular plugin, nor do I really know
what it is, but the general idea is to detect the plugin first, then
write the line of code that offers the object like this:
<script>
  if (navigator.plugins["+fullpluginnameand version+"]){
    document.write("<embed src='abcdef.asf' width=120 height=120>") 
    }
  else {
    document.write("This object requires the asf-plugin<br>
                    To get that plugin go to 
          <a href='http://www.getasf.com/asfdownload.htm'>Get ASF</a><br/>
                    and <a href='abcdef.asf'>download</a> the asf file<br/>
                    when you have it for later use.")
    } 
</script>   Hope this helps.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://bizroof.com
http://www.zobab.com
http://www.healthinhealth.com