Using ActiveX control development web page common problems

zhaozj2021-02-08  262

1. What is ActiveX control?

The Microsoft® ActiveXTM control is a reusable software component developed by the software provider. Use the ActiveX control to add special features in the URL, desktop applications, and development tools. For example, the STOCKTICKER control can be used to instantly join the activity information on the web, and the animation control can be used to add animation features to the web page.

Now, more than 1,000 commercial ActiveX controls, development controls can use various programming languages, such as C, C , next-generation Microsoft Visual Basic®, and Microsoft Visual Java Development Environment Microsoft Visual J TM. Once the ActiveX control is developed, the design and developers can use it as a pre-assembly component for developing a client. Use the ActiveX control in this way, users do not need to know how these components are developed, in many cases, even do not need to program their own programming, you can complete the design of the web page or application.

Internet Explorer 3.0 is the first web browser that supports ActiveX controls in the web. ActiveX Plug-in for Netscape can also display the ActiveX control (see URL http://www.ncompasslabs.com) in Mosaic and Netscape Navigator.

2. Can Netscape Navigator display ActiveX controls?

Yes, ActiveX Plug-in for Netscape can be displayed using ActiveX Plug-in for Netscape in Netscape Navigator. Plug-in will be obtained on the NCompaths laboratory at http://www.ncompasslabs.com/. Internet Explorer 3.0 and MosaicWeb browsers can also display ActiveX controls.

3. What tools now support to use ActiveX control development?

Developers can insert an ActiveX control in the HTML web page with ActiveXControlPad (see, http://www.microsoft.com/workshop/author/ CPAD /). According to the ActiveX Control Pad tutorial on http://www.microsoft.com/Workshop/author/cpad/tutorial-f.htm URL, developers can easily learn to use ActiveX ControlPad. Softquad's HotMetal Pro also supports using ActiveX controls on an HTML page. In the next few months, Microsoft and its third-party software vendors will also launch a number of network production tools that support web pages using ActiveX controls.

4. Do you only use the programmer to use the ActiveX control?

Understand script language, such as Visual Basic Scripting Edition (VBScript) or JavaScriptTM, naturally helpful with the ActiveX control. But not necessarily there must be such a program development basis. For some controls, you need to write a certain number of script programs to integrate into the web, but most ActiveX controls don't need this. Using ActiveX Control Pad, even non-programmed developers can also insert a lot of controls into the web page via simple selection and click.

5. After you create a web page containing the ActiveX control, if the user browses the webpage on its own machine, how does the control are installed and displayed on a user terminal?

When Internet Explorer 3.0 encounters a web page containing an ActiveX Control (or Composite Control), first check the user's local system registration, check if the component is already installed on the local machine. If the component is already on the local machine, Internet Explorer 3.0 displays the webpage and activates the control. If the control has not been installed on the user locally, Internet Explorer 3.0 will automatically find this control from the Internet based on the developer to create a web page, and install it on the local machine. 6. How to define an address on the web, use the user access to the web page, can the control download to the user's computer?

Web developers can provide the above information by setting the CodeBase property to the control. When using ActiveX Control PAD, in ObjectEditor, you can see a property sheet that developers can easily use the table to set properties. By setting attributes, you can define the URL address or address set, and you can find and download the control over the Internet via the address. Internet Explorer3.0 is using these address information, locating controls, and automatically downloading components. After downloading, the webpage appears on the local machine. On Microsoft Systems Journal in July 1996, the "Safe Web Surfing With The Internet Component Download Service" detailed the entire information positioning and download process. It is necessary to mention that many Microsoft provide controls (for example, HTML Layout Control) does not require CodeBase settings, as ActiveX object index (ActiveX Object Index) can automatically find and locate controls based on CLSID (Control Unique Identifiers).

7. Do you notify the user when the component is downloaded?

Yes. When a component needs to download, Internet Explorer 3.0 will display a message box at a default to inform users to start downloading. Users can choose to terminate download or continue downloading. If the control has a digital signature, a digital authentication is provided, including software vendor names that provide this control, and confirm that the control is not damaged. Software developers can do digital signatures when developing controls. The signature information is carried by the control itself, so the digital verification will be automatically displayed before downloading, and users who use the control on the web page do not need to do any development work.

8. Where is the control download?

By default, the control is downloaded in the ActiveX control cache under the / Windows / Occache directory.

9. How to treat newly created new version controls? If you already have the boss's control Internet Explorer, how do you know the new version of the control?

Component Download Service in Internet Explorer 3.0 provides a version control feature, using this feature, the new version of the control is automatically detected and can be downloaded automatically. On the Microsoft Systems Journals Journal in July 1996, the "Safe Web Surfing With The Internet Component Download Service" detailed the entire version control process.

10. Is theActiveX control issued a license? Can the user download the control to use the ActiveX control on your own web page.

The ActiveX control provides a complete protection mechanism that prevents unlicensed users from using ActiveX controls on the web page. So far, there have been some development tools to support this mechanism, such as Visual Basic, Microsoft Access, and Internet Explorer 3.0 Beta2. There are two licensing forms for existing control licenses: develop licenses and run licenses. Developing licenses allows licenses to use controls, using VisualBasic, ActiveX ControlPad, and other related development tools, engage in development-oriented activities. Running Using licenses only allows the permaners that allow licenses to display controls in existing applications or web pages, which is not allowed to insert control into the tool for development purposes. Support license mechanism is a work on independent control. Some control developers have chosen the development strategy that does not support the license mechanism, so that once they developed, once they are installed, they can be used to develop. Other control developers only provide free operating licenses, while fees are required when providing development licenses. Users who need to use controls online should read the license protocol provided by the control developer to determine the permissions of your control. 11. Why do some controls, even include some Visual Basic 4.0, which cannot be displayed in Internet Explorer 3.0 on the web page?

Many controls including some controls in VisualBasic 4.0 provide license mechanisms. To use these controls online, you must obtain the corresponding running license and place the corresponding license file on the web, otherwise, the control will not be displayed on the user terminal. For a control, only the legal developers of the control have the right to "Run Permission" for the control. For detailed processes that get the control run permission in the web page, see the license control section in the ActiveX SDK document (in the new ActiveX Control Pad FAQ, there is a specific example). It is worth mentioning that Microsoft and its third-party partners also offer a large number of ActiveX controls with free access licenses online. When using these controls in a web page, you do not need to submit the right license file.

12. Microsoft now which controls now? What controls in ActiveX Control Pad and Internet Explorer 3.0?

On the Microsoft URL http://www.microsoft.com/activex/gallery/, an ActiveX Component Gallery is provided, where a detailed list of currently available controls is given. Table 1 lists the controls in Internet Explorer 3.0, which can be installed from the MSDN library.

Table 1. Controls in Internet Explorer 3.0 and The ActiveX Control Pad

Control NameDescriptionInternet Explorer (Minimize Installation, Typical Installation, Fully Installation) WebBrowserControl British Browse control based on InternetExplorer3.0, can display HTML homepage, ActiveX control, and ActiveX document TIMER programmable control for setting execution behavior and In the schedule of the script, the MARQUEE Control is scrolled horizontally or vertically in the vertical direction. By setting this control, you can change the number and delay of the scrolling, this control is the control (full installation of the control (full installation) ActiveMovie Control in Internet Explorer 3.0 in the Internet Explorer 3.0. And non-flowing media, such as video, sound, and synchronous images with sound (full installation) and control in ActiveX Control Pad HTML display using the International Internet Association (W3C) in the ActiveX Control Pad INTERNET Explorer 3.0 2D HTML Domain Microsoft Forms 2.0 Label for generating basic text labels Microsoft Forms 2.0 TextBox multi-line text portal and text display window Microsoft Forms 2.0 Combo Box support users from the drop-down list Select options Microsoft Forms 2.0 LIST Box supports users from scrolling lists Microsoft Forms 2.0 Checkbox Support User Check Options Microsoft Forms 2.0 Option Button supports users from multiple options to select Microsoft Forms 2.0 Toggle Button with switching status (for example, ON / OFF) Microsoft Forms 2.0 Command Button Basic Button Controls Microsoft Forms 2.0 Tabstrip provides a composite page for selecting by Tab Microsoft Forms 2.0 scrollbar basic horizontal and vertical scroll bar Microsoft Forms 2.0 Spin Button can push the back button Microsoft ActiveX Image Control in the figure In the meta file, display .jpg, .gif, .bmp, or Wavelet format image Microsoft ACT IVEX Hotspot Control is used to add a clear hotspot in HTML LayoutControl on the ActiveX component library network, the Microsoft control Animated button displays different frame sequences in the .avi file according to the status of the key. Using the Windows animation universal control. The .avi file must be RLE compression or 8-bit compression. CHART users can draw different forms of table gradient in different ways to mask a certain area, and switching Label between a particular color and another particular color to display a certain text at a particular angle. This control is also allowed to demonstrate a good curve to display text. This control also supports events such as Click, Change, Mousedown, Mouseover, MouseUp. MENU allows web supplies to put a menu button on the web page, this button can pop up a standard menu. The MENU control activates an author's response through the VBScript code control button. Popup Menu Popped a menu whenever the Popup mode is called. This control is activated when the menu item is in some points. Popup Window displays an HTML text in the pop-up window. This control is often used to provide online instructions and connection preview previewer to download files from a particular URL and put files into a cache. This control is invisible at runtime, and once it is activated, start downloading. This control is activated a completion event at the end of the download.

Stock Ticker Press a certain time interval and continuously displays the number of downloaded data from a given URL. The data can be files for text or .xrt format. VIEW TRACKER generates an event set whenever the control enters or leaves the display area. Based on section, the author can use this control to automatically modify the functionality or properties of the web page. It is worth mentioning that Microsoft and third-party partners are constantly developing new controls. Many of these controls have been placed in Microsoft's ActiveX component library URL http://www.microsoft.com/activex/gallery.

13. Where can I get these ActiveX controls?

The Microsoft ActiveX Component Library (ActiveX Component Gallery) has related connections, which points to the various ActiveX controls provided by Microsoft and third-party developers.

14. Third-party software suppliers now offer those ActiveX controls?

There are more than 1,000 commercial controls provided by third-party software developers. In the Microsoft ActiveX Component Gallery, you can find a list of companies developing the Internet Enhanced ActiveX control.

15. Once the above ActiveX control is installed, how to develop a web page that uses these ActiveX controls?

Use the ActiveX Control Pad to insert these controls into the User HTML web page. Learn how to use these tools in accordance with ActiveX ControlPad - http://www.microsoft.com/Workshop/author/cpad/tutorial-f.htm (see activexControlpad at http: // www. Microsoft.com/Workshop/author / CPAD / web page).

16. How does HTML LAYOUT control enhances the ability to use ActiveX control to develop web pages?

The HTML LAYOUT control supports extended HTML published by W3C, allowing to accurately locate objects on the web page. Originally, HTML does not allow web developers to use X, Y coordinates to accurately locate elements on the web, nor allowing the overlay object. The newly added "2-D" layout function allows developers to complete more complex design, providing support for users to develop better web applications. By implementing a new W3C HTML extension, the HTML Layout control provides a more advanced layout option for the ActiveX control displayed in Internet Explorer 3.0. The HTML LAYOUT control is a new component of Internet Explorer 3.0 and is integrated into the Internet Explorer 3.0 fully installed version. (HTML LAYOUT control is also part of ActiveX ControlPad, can be installed by MSDN library. Since the full frame editor based on WYSIWYG pages is provided, ActiveX Control Pad can be used in combination with HTML Layout Control. This makes advanced two-dimensional two-dimensional development with ActiveX controls. Style HTML design is simpler.

转载请注明原文地址:https://www.9cbs.com/read-1436.html

New Post(0)