Show TOC

Object documentationIsolated HTML Container Locate this document in the navigation structure

 

The IsolatedHtmlContainer control displays a HTML document represented by its URL, inside an iFrame.

Note 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.

End of the note.

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")

Example

using the taglib

Syntax Syntax

  1.  <hbj:isolatedHtmlContainer 
        id="isohtmlCont"
        width="400"
        height="200"
        srcUrl="http://www.sap.com"
        scrolling="AUTO"
        bordered="true"
        tooltip="An isolated container"
        />
    
End of the code.

using the classlib

Syntax Syntax

  1.     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);
    
End of the code.
Result

This graphic is explained in the accompanying text.