The object element in HTML allows Web page designers to specify data to be rendered by a browser plugin. IBM
® has taken advantage of this element to allow XFDL forms to be embedded in a web page. Using the object element allows you to specify how the object is implemented and the location of the object's data. This is done using the following attributes:
|id||All||Assigns a name to the object, identifying it for manipulation by associated applications. It must be unique within the HTML page. For example, |
|classid||IE only||Specifies the browser plugin used to display the object. In this case, it identifies the Active X control that activates the Viewer This value must always be: |
Note that the classid attribute essentially fulfills the same function for the Internet Explorer browser as the type attribute does for the Mozilla Firefox browser.
|type||Mozilla Firefox||The type attribute has one parameter:
- mime type – This value must always be application/vnd.xfdl.
Note that the type attribute fulfills the same function for the Mozilla Firefox browser as the classid attribute does for the Internet Explorer browser.
|height||All||Indicates the height of the object in pixels. For example: |
|width||All||Indicates the width of the object in pixels. For example: |
|style||All||Allows you to specify font color, styles, and sizes, as well as background colors and object positioning. For example: |
You can also modify the display area of the form with the following optional attributes:
|align||All||Sets the position of the object within its allowed display area. The valid settings are: left, right, and center. For example: |
|border||All||Sets the width of the object's border in pixels. This value must always be an integer. For example: |
|hspace||All||Sets the amount of white space (in pixels) to be inserted to the left and right of an object. If the object has a border, this additional white space is outside of the border. This number is always an integer. For example: |
|vspace||All||Sets the amount of white space (in pixels) to be inserted above and below an object. If the object has a border, this additional white space is outside of the border. This number is always an integer. For example: |
In the following example, the object is assigned a unique name, pointed at the Viewer Active X control, and given a size.
<OBJECT id="unique_name" height="400" width="800"
... object parameters...
For more information about the HTML object element, refer to the W3C Web site at: http://www.w3.org/TR/REC-html40/struct/objects.html
Parent topic: Embedding a form