<<

Outline

• Introduction ActiveX • Motivation for ActiveX • What is ActiveX? • Elements of ActiveX • ActiveX Controls in Web pages • Advantages and Disadvantages By Hayley Nhan and Mark Chandra

Motivation For ActiveX Introduction Bring Component-based Development to the Internet • Software Developers - want to • ActiveX technology is changing the easily create, reuse and integrate interaction with the . software components Developers • ActiveX has brought interactive objects • Web Producers - want to build such as animation, audio, video and virtual rich, engaging Web sites quickly Web reality together on the Web. and easily Producers • End Users - want an intriguing, • Web sites can now include user control and exciting experience choice. End Users What is ActiveX? Elements of ActiveX

• ActiveX is a set of technologies from Three main elements of ActiveX are: that enables interactive content for the World Wide Web, which is based on ƒ ActiveX Controls COM. • ActiveX makes it easy to integrate and ƒ ActiveX Scripting reuse any components such as HTML ƒ documents, Java Applets, Java Script and ActiveX Documents more.

ActiveX Controls ActiveX Scripting

• Are interactive objects in a that • Used as a medium to initialize and provide user-controllable functions and are manipulate the various elements on an manipulated visually by GUI development HTML page including forms, Java applets, tools. and ActiveX controls from the browser or • Provide tools for linking desktop . applications to the World Wide Web . • Currently available ActiveX Scripting • Programmable by other components and scripts. languages are VBScript and JavaScript (default script). ActiveX Documents ActiveX Documents

• Are structured storage files that are • Features: displayed by an ActiveX component ƒ Use the entire client area • Enable users to view non-HTML ƒ Provide printing support documents, such as or ƒ Have menu merging and toolbars Word files, through a Web browser. ƒ Integrates existing documents into the browser or any other application.

Example of ActiveX Mapping Controls To HTML Controls in a Web page

• Use the W3C tag – also supported for plug-ins Example ActiveX Control • ID = name used by scripting language • CLASSID=Globally unique identifier for the ActiveX

Example of ActiveX control: Net Meeeting

Control = Properties of the Control width=150 ALIGN=CENTER CLASSID="clsid:99B42120-6EC7-11CF-A6C7- 00AA00A47DD2" WIDTH=200 HEIGHT=200 ID=MyObject CODEBASE="http://foo/bar/myoc.ocx#ver=4,70,0,1062"> Example of ActiveX Controls in a Web page ActiveX and Java

• ActiveX controls are very similar to Java applets. • ActiveX controls are saved to the hard drive when the page is first downloaded, whereas Java applets must be downloaded each time the page is viewed.

Advantages Advantages

• Allows the creation of web pages having • Can be re-used in other applications, or can active content with impact that will attract be used to create new controls with and retain users. extended functionality. • Can be created using a wide assortment of • ActiveX components are automatically tools and programming languages. downloaded from the specified server when • There is an existing inventory of ActiveX the page is opened. controls available today for immediate use. Disadvantages User Experience: How It Works

• It is only supported on Intel architectures and in ActiveX Control (version 3.0 and above). Can be or download HTTP used in , but a third party plug-in is HTML content server required. (text and images) HTTP • ActiveX components can currently only run on ActiveX Control Windows. or Java applet • Security problems -has no restrictions to prevent ActiveX Script controls from using resources on the user's computer. .x/4.x COM objects or ActiveX Controls

The End

ActiveX provides exciting alternatives to designing web pages because it brings new and innovative functionality. An area where ActiveX controls have been used successfully is in company Intranets, where security is not an issue.

Examples of ActiveX controls: http://members.tripod.com/~activecontrol