The IsolatedHtmlContainer control displays a HTML document represented by its URL, inside an iFrame.
Note
The IsolatedHtmlContainer cannot handle HTML documents which contain for example, JavaScript that places the document in a self defined frame. These HTML documents will use the entire web browser window, regardless of the IsolatedHtmlContainer.
This control is available for web browser Internet Explorer and Netscape 6.0 and higher. In Netscape 4.7 the HTML document will be rendered in a new browser window, similar to the 'target=_blank' argument in the "link" control.
bordered
A boolean value that, if set to true, draws a border around the IsolatedHtmlContainer control.
height
Specifies the height of the IsolatedHtmlContainer control.
id
Identification name of the IsolatedHtmlContainer control.
scrolling
Defines if the IsolatedHtmlContainer control has scroll bars.
AUTO
Displays scroll bars only if the HTML document exceeds the specified height and width of the IsolatedHtmlContainer control.
YES
Displays the IsolatedHtmlContainer control always with scroll bars.
NO
Displays no scroll bars regardless of the size of the HTML document. The portion of the HTML document that exceeds the specified height and width of the IsolatedHtmlContainer control is clipped.
srcUrl
Specifies the address of the page/document to be displayed in the IsolatedHtmlContainer control.
tooltip
Defines the hint of the link which is displayed as the mouse cursor passes over the IsolatedHtmlContainer, or as the mouse button is pressed but not released.
width
Specifies the width of the IsolatedHtmlContainer control.
Attributes |
M |
Values |
Usage |
---|---|---|---|
bordered |
FALSE (cs) TRUE |
Taglib bordered="TRUE" Classlib setBordered(true) |
|
height |
Unit |
Taglib height="300" Classlib setHeight ("300") |
|
id |
* |
String (cs) |
Taglib id="isohtmlcont" Classlib setId("isohtmlcont") |
scrolling |
AUTO YES NO |
Taglib scrolling="NO" Classlib setScrolling (Scrolling.NO) |
|
srcUrl |
* |
String |
Taglib srcUrl="http://www.sap.com" Classlib setSrcUrl("http://www.sap.com") |
tooltip |
String |
Taglib tooltip="Center of ebiz" Classlib setTooltip("Center of ebiz") |
|
width |
Unit |
Taglib width="500" Classlib setWidth("500") |
using the taglib
Syntax
<hbj:isolatedHtmlContainer id="isohtmlCont" width="400" height="200" srcUrl="http://www.sap.com" scrolling="AUTO" bordered="true" tooltip="An isolated container" />
using the classlib
Syntax
Form form = (Form) this.getForm(); IsolatedHtmlContaimer ihc = new IsolatedHtmlContainer("isohtmlCont"); ihc.setWidth("400"); ihc.setHeight("200"); ihc.setSrcUrl("http://www.sap.com"); ihc.setSrolling(Scrolling.AUTO); ihc.setBordered(true); ihc.setTooltip("An isolated container"); form.addComponent(ihc);