BiIframe
This component allows usage of an HTML 4 iframe element. This allows any document/file that is supported by the platform to be shown inside a component.
This class extends BiComponent and therefore all methods and fields available for BiComponent are also available for BiIframe .
Constructor
new BiIframe ( [ oUri ] )
Parameters
| Name | Type | Optional | Default | Descripton |
oUri | String/BiUri | ![]() | The URI to the file to show inside the frame. If this is a string a new URI is created from that string relative to the ADF path. |
Properties
| Name | Type | get | set | Descripton |
contentDocument | Document | ![]() | Returns the document inside the iframe. This might fail due to security restriction placed on the platform. Be sure to use try and catch to catch these errors. | |
contentWindow | Window | ![]() | Returns the window object inside the iframe. | |
loaded | Boolean | ![]() | This is true once the content inside the iframe is loaded. If the content document cannot be read due to security limitations (from another domain) this will return false | |
uri | | ![]() | ![]() | The URI to the file to show inside the frame. If this is set to a string a new URI is created from that string relative to the ADF path. |
Methods
None.
Events
| Name | Type | Bubbles | Descripton |
load | | Happens when the iframe is loaded. Note that this might fire more often than one might expect so be sure to check that you really want your code run when the event is fired. |
Static Methods
None.
Static Fields
None.
Remarks
Iframes has some security restrictions. For example one cannot access the document object model of the document inside the iframe if it resides on a different domain than the application hosting the iframe component.
