|
From: <tre...@us...> - 2007-08-31 03:40:26
|
Revision: 298
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=298&view=rev
Author: trevorolio
Date: 2007-08-30 20:40:25 -0700 (Thu, 30 Aug 2007)
Log Message:
-----------
Added a bridge between the external URL space and things, so now template scripts can be directly addressed via HTTP, and info panels are just iFrames showing a thing's service page.
Modified Paths:
--------------
maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java
Modified: maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java
===================================================================
--- maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java 2007-08-30 20:40:07 UTC (rev 297)
+++ maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java 2007-08-31 03:40:25 UTC (rev 298)
@@ -215,14 +215,14 @@
}
}
- private void showInfoPanel(long sourceThingID, String panelHTML) {
+ private void showInfoPanel(long sourceThingID, String nonce) {
try {
JSObject win = JSObject.getWindow(this); // get handle to a window.
if (win == null) {
System.err.println("Could not do live connect. Check that mayscript is true in the applet tag.");
return;
}
- String[] args = { sourceThingID + "", panelHTML };
+ String[] args = { sourceThingID + "", nonce };
win.call("addInfoPanel", args); // Call a JavaScript function
} catch (Exception e) {
if(!printedLiveConnectErrorMessage) {
@@ -331,8 +331,8 @@
public void contextItemChosen(Thing thing, long nonce, String id) {
}
- public void receivedInfoPanel(long sourceThingID, String panelHTML) {
- showInfoPanel(sourceThingID, panelHTML);
+ public void receivedInfoPanel(long sourceThingID, String nonce) {
+ showInfoPanel(sourceThingID, nonce);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|