JavaScript Application - Summary Steps
This uses the JavaScriptDemo example application which is included with the ManagedHubDemo files.
This example consists of three files:
- The main html file:
./JavaScriptDemo.html
- Two JavaScript files which are loaded from the main page like this:
<head> <title></title> <!-- Load the PageBus JavaScript file. --> <script type="text/javascript" language="javascript" src="./ManagedHubDemo/PageBus.js"></script> <!-- Load the JavaScriptDemo JavaScript file. --> <script type="text/javascript" language="javascript" src="./ManagedHubDemo/JavaScriptDemo.js"></script> </head>
- Two JavaScript files which are loaded from the main page like this:
The steps for creating a JavaScript client that receives ManagedEvents from Openspace are similar to those of the ManagedHubDemo example GWT application with several key differences:
- The TIBCO PageBus ManagedHub JavaScript interface must be used directly. For details on this interface see:
TIBCO PageBus™ Developer’s Guide Software Release 2.0 October 2009
- In JavaScript there is no ManagedEvent or ManagedEventHandler classes so the JavaScript message object is handled directly.
- In JavaScript there is no ManagedEventClient class which handles the details of creating and connecting the IframeHubClient. This needs to be done directly in JavaScript.
Procedure
Copyright © Cloud Software Group, Inc. All rights reserved.