|
|
| |
|
To embed SwiftView within an HTML page, use the HTML EMBED tag.
You may also use the OBJECT tag but since it works only with
Microsoft IE at this time, use it only when it is the browser of choice
for all your users.
An advantage to using the OBJECT tag is to simplify
SwiftView installation as you will see in our second example.
Using EMBED
In this first example, we use the HTML EMBED
tag to embed SwiftView into a HTML table cell.
We set the following EMBED attributes:
- SRC
Is set to the path of the document to be displayed, "docs/pcl/phonebill.pcl".
- WIDTH and HEIGHT
Are set to "100%" so it fills the table cell.
- COMMANDS
Is set to "gui controls display rightbuttons" so SwiftView's toolbar will appear.
[ Run ] [ View Source: embed1.htm
]
Using OBJECT
In this second example, we use the HTML OBJECT tag to embed
SwiftView.
Within the OBJECT tag, we set the CLASSID and
CODEBASE attributes.
IE will use this information to install SwiftView if it
is not installed or is outdated.
- CLASSID
Is set to "CLSID:7DD62E58-5FA8-11D2-AFB7-00104B64F127",
the registered ID for our SwiftView ActiveX control.
Without this information, IE does not know which ActiveX control to associate with this OBJECT.
- CODEBASE
Is set to "../product/current/licensed/svinstall_greenzhp.cab#Version=",
the location
of the CAB file to use when installing the ActiveX control and the version
number.
This attribute may be omitted, however, IE will not be able to install the
ActiveX control if missing or outdated.
- WIDTH and HEIGHT
Are set to "100%" so it fills the table cell.
We specify the document to display using the PARAM tag,
setting its NAME attribute to "SRC" and VALUE
to "docs/pcl/phonebill.pcl".
We also use the PARAM tag to set COMMANDS as we did in the
first example to display a SwiftView toolbar.
[ Run (IE only) ] [ View Source: embed2.htm
]
|
|
|
|