Consultor Eletrônico



Kbase 21205: Guidelines For Making OCX Objects Work with WebSpeed
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

GOAL:

Guidelines for making OCX objects work with WebSpeed.

FIX:

Follow these steps for best results:
1) Register the OCX object in the machine where the application
is running.

2) Paste the OCX to generate the registry reference on HTML.
You can use an authoring tool, such as Microsoft FrontPage or
Allaire Corporation's HomeSite (no WebSpeed at this point).

3) Create a new "Blank" webobject using AppBuilder or Workshop and
paste the reference from the HTML page. You can also open the HTML
page directly using Workshop.

4) Compile to create the WebSpeed object.

Here is an example of an OCX (Mscal.ocx):

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<META NAME="AUTHOR" CONTENT="Your Name">
<TITLE>WebSpeed Script</TITLE>
</HEAD>

<BODY>
<SCRIPT LANGUAGE="SpeedScript">
/*------------------------------------------------------------------
File:
Description:
Created:
-------------------------------------------------------------------*/
{&OUT} "<H1> OCX object example</H1>" .

{&OUT} "How to use a OCX object in WebSpeed".
</SCRIPT>

<p><object id="calendar" name="calendar"
classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" border="0"
width="372" height="279"></object></p>
</body>

</BODY>
</HTML>


NOTE: You must check the OCX documentation to know its features and the compatibility with the Web browser. Some OCXs might be incompatible with Internet Explorer or Netscape. For example, Mscal.ocx (the object used in the example) is only compatible with Internet Explorer.