Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determining plugin version

Status
Not open for further replies.

wsuh

Programmer
Joined
Jun 28, 2001
Messages
6
Location
US
I understand how to use javascript and vbscript to determine if the authorware web player plugin is detected on the end user's browser (IE). How do I determine the version of the authorware plugin on internet explorer? Here's the code I have thus far:

<script language=&quot;Javascript&quot;>

<!--
var plugin = (navigator.mimeTypes &&

navigator.mimeTypes[&quot;application/x-authorware-map&quot;]);

if (navigator.userAgent && navigator.userAgent.indexOf(&quot;MSIE&quot;)>=0
&& navigator.userAgent.indexOf(&quot;Windows NT&quot;)>=0) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('plugin = (

IsObject(CreateObject(&quot;Macromedia.AuthorwareShockwaveControl.1&quot;)))\n');
document.write('</SCRIPT\> \n');
}

if (plugin) {
window.open(&quot;edi/edi_final.aam&quot;, &quot;edi&quot;, &quot;width=640, height=480&quot;)
}

else {
document.write('<h1>Authorware WebPlayer 5 Plugin Not Detected</h1>');
}
//-->
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top