| SourceLoader |
Building the SourceLoader Component |
The SourceLoader Crossware component makes use of JavaScript to Java calls, and essentially acts to encapsulate Java functionality for retrieving an URL from a server.
(install dir)/samples/SourceLoader/
)
into Visual JavaScript. One can learn how to use the
SourceLoader component by inspecting the components on the
page once the project is opened, and looking at how the page has been wired together.
Deploy this project (which contains sample Crossware Application pages using the SourceLoader component) to a server and load Page1.html to see a basic demonstration of the SourceLoader at work. (The files can also be copied directly to a server without using Visual JavaScript).
Page2.html illustrates using the SourceLoader in conjunction with some custom Client-side JavaScript to build a Crossware Application that loads the URL specified (it must be from the same server due to security restrictions) into a new window, with the following changes:
Note: For information on how to create a signed version of the SourceLoader
Crossware Examples, see
information on using Page Signer. This would allow the Crossware App to load
URLs from any server, not just ones from the same server the SourceLoader originated from.