ThePlace

Home ] Search ] Resources ] Site Map ] Contact Me ]
Dave's Information Technology Resource

Up ]

DHTML ] CSS ] JavaScript ] [ ActiveX and Plug-ins ] VBScript ] Web Applications ] ASP ] Web Databases ] ASP Applications ] Perl ] Java ]

--- ActiveX and Plug-ins ---

ActiveX and Plug-Ins are two technologies directed at the Internet Explorer and Netscape browser platforms respectively.

They are intended to...

bulletCompliment HTML content.
bulletProvide specialized functionality that can extend beyond the limitations and restrictions of HTML and document object model.

ActiveX

Reference...Microsoft (they invented it and are the best place place to start) http://www.microsoft.com/com/tech/activex.asp 

ActiveX controls are...

bulletPrimarily a Windows-only technology.  It is based on an open standard but has not been widely adapted to other systems.
bulletBuilt on top of Microsoft COM (component object model) technology.
bulletComponents that can be developed using a number of programming/development environments (Visual Basic, C++, Java, etc.) and integrated into other applications such as programmed applications (written in VB, C, or Java) or into desktop applications (e.g., Internet Explorer, and Microsoft Office applications such as Word and Access).
bulletGenerally standalone software components that are "registered" to a machine prior to being used.  This is used to setup up installed components (including libraries).
bulletSometimes referred to as "ActiveX controls", they offer some level of extended capability for the browser or application.
bulletCan operate on the same machine or across multiple machines (using DCOM -- distributed COM).

For the web...

bulletActiveX controls can be added to web pages  as follows...
bulletThe HTML/W3C <OBJECT> tag, <EMBED> also supported for plug-ins
bulletID = name used by scripting language
bulletCLASSID=Globally unique identifier for the ActiveX Control
bulletCODEBASE = Control to download
bullet<PARAM> = Properties of the Control
bulletExample...

example: <OBJECT ID="ActiveMovie1" WIDTH=160 HEIGHT=120
CLASSID="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A">
<PARAM NAME="_ExtentX" VALUE="6000">
<PARAM NAME="_ExtentY" VALUE="6000">
<PARAM NAME="MovieWindowWidth" VALUE="160">
<PARAM NAME="MovieWindowHeight" VALUE="120">
<PARAM NAME="FileName" VALUE="vdemo.avi">
</OBJECT>

bulletExamples (you must be in Internet Explorer to view the following, use the View Source function to see how these are setup)...
bulletAudio and Video application - ties into the media player features of Windows
bulletCalculator - use the .alx (click to view... calc.txt)format to contain a set of ActiveX controls; this builds on a relatively standard set of built in ActiveX controls.
bulletTraining - uses the .alx format
bulletDrawing Tool - A cab based delivery (the ActiveX components are packaged for download)
bulletThe client can be protected from potentially dangerous ActiveX controls via the built-in security features (through the Tools menu, Options, Security settings).  ActiveX controls can be...
bulletPrevented from loading onto the client machine via the browser.
bulletSigned using a digital signature.
bulletIdentified as safe/unsafe for scripting.
bulletPrevented from running (turned off).

ActiveX controls have the advantage of being relatively transparent in terms of download and installation to web-browser environments.  

Popular browser-based ActiveX controls include...

bulletAdobe Acrobat
bulletMacromedia Shockwave
bulletMacromedia Flash

Plug-Ins

Plug-ins are native to Netscape.  In many respects they are similar to ActiveX.

Reference... Netscape: http://developer.netscape.com/docs/manuals/communicator/plugin/index.htm 

Some basics (from the Netscape web site)...

bulletA plug-in is a separate code module that behaves as though it is part of the Netscape Communicator browser
bulletYou can use the Plug-in API to create plug-ins that extend
Communicator with a wide range of interactive and multimedia capabilities, and that handle one or more data (MIME) types. 
bulletBased on the Plug-in API to extend the capabilities of Communicator by providing inline viewers for types of data not supported by Communicator itself. 
bulletPlug-ins are developed by writing code that interfaces to the Netscape program via the application programming interface (API).
bulletPlug-ins offer a variety of features that can increase the flexibility of Netscape Communicator. 
bulletPlug-ins include...
bulletmultimedia Viewers such as Macromedia Shockwave, Macromedia Flash, and Adobe Acrobat 
bulletutilities that provide object embedding and  compression/decompression services

Running a plug-in...the following HTML will run a plug-in on a web page (Netscape only):

<EMBED 
SRC="location"
TYPE="MIMEtype"
PLUGINSPAGE="instrURL"
PLUGINURL="pluginURL"
ALIGN="LEFT"|"RIGHT"|"TOP"|"BOTTOM"
BORDER="borderWidth" 
FRAMEBORDER="NO"
HEIGHT="height" 
WIDTH="width"
UNITS="units"
HIDDEN="TRUE|FALSE
HSPACE="horizMargin" 
VSPACE="vertMargin" 
NAME="pluginName"
PALETTE="FOREGROUND"|"BACKGROUND"
>
...
</EMBED>

The <Object tag can also be used.

Issues related to plug-in technology...

bulletTypically require the end user to manually download the plug-in and complete the installation.
bulletThis process can often be confusing to end users.

 

 

Home ] Up ] Computer Architecture ] Programming Bootcamp ] Database Bootcamp ] Visual BasicS ] Web Basics ] Web Multimedia ] Advanced Web Topics ] Developing Web Sites ] XML Technology ] Web Glossary ]

Copyright © 1999 - 2005 
ThePlace - Written and Sponsored by Dave Hillman