BBjHtmlView::injectUrl
Description
In BBj 17.00 and higher, this method injects the specified JavaScript URL into the HTML document of this BBjHtmlView control, making it available for subsequent use by client-side JavaScript, BBjHtmlView::executeScript, or BBjHtmlView::executeAsyncScript.
Syntax
| Return Value | Method |
|---|---|
|
void |
injectUrl(string url) injectUrl(string url, boolean top) |
Parameters
| Parameter | Description |
|---|---|
|
url |
URL containing JavaScript to be injected into the HTML document of this BBjHtmlView. |
|
top |
Boolean value specifying whether this URL is to be injected into the top level window of the page. |
Return Value
None.
Remarks
In BBj 19.20 and higher, the ON_SCRIPT_LOADED and ON_SCRIPT_FAILED events report the success or failure of loading the requested JavaScript URL into the current page.
Example 1 (BBj 17.00 and higher)
|
Example 2 (BBj 19.20 and higher)
|
Contents of https://www.poweredbybbj.com/files/scripts/hello.js
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.