![]() How To Use This ApplicationThis document contains suggestions for various ways you can launch this application.
Please refer to the product documentation for complete details. You can also find
late-breaking information and product news on the
SumTotal web site.
|
||||||||||||||||||
Manual LaunchThis simplest way to launch the application is by directly opening its main page in your browser. It will be displayed using the options established at the time it was exported. The advantage of this approach is that it requires no additional programming effort, beyond that of simply exporting it for the Web.
Programmatic LaunchThe disadvantage of the manual approach is that it offers few facilties for integrating this application with others, or with existing Web pages. To do this, several programmatic alternatives are available.
In general, all the programmatic approaches allow arbitrary HTML pages to launch any number of applications. Applications can be launched full-screen, in a new window, or even in place, in another frame for example in the launching page. See the reference section for details.
Programmatic LaunchUsing an Invisible <IFRAME> or <ILAYER>Although this technique is essentially the same for both Internet Explorer and Netscape, the details differ. The effect is the same: you can invoke your application from any arbitrary page. The first task is to define an invisible container to hold the application's code. Under Internet Explorer, use the <IFRAME> tag:
Under Netscape, use its <ILAYER> tag:
The SRC to both is that of this application's scriptlet page, scriptlet.html. Don't be alarmed by the word "scriptlet" in this context. This is just a version of the application that does nothing until you tell it to. These invisible objects now expose a method, bootstrap(), that you can invoke from any JavaScript or VBScript on your page. For example, under Internet Explorer, you could code a hyperlink to the application like this:
Under Netscape, the hyperlink looks like this:
Programmatic LaunchUsing ScriptletsUnder Internet Explorer 4.x and higher, you can invoke this application from an arbitrary HTML page via a scriptlet. First, create an <OBJECT> tag like this.
The URL is that of this application's scriptlet page, scriptlet.html. This scriptlet now exposes a method, bootstrap(), that you can invoke from any JavaScript or VBScript on your page. For example, you could code a hyperlink to the application:
Like the <IFRAME> technique, you can code many such scriptlets in a single page, all referencing different applications.
Programmatic LaunchIncluding the bootstrap.js ScriptAlthough this technique works for both Internet Explorer and Netscape, it is more naturally used in Netscape where scriptlets are not available. First, load the bootstrap.js script of this application into any arbitrary page. For example, it is loaded into this one. Here's how to do it:
Now the same bootstrap()method described earlier for scriptlets is available. For example, you could code a hyperlink to the application:
Note that 'window' is the only valid htmlActivation option in this case.
bootstrap() Method Referencewindow bootstrap(url, dhtmlActivation, htmlActivation, target) Return Value
Parameters
|
|