You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by zh...@apache.org on 2011/04/01 02:29:38 UTC

svn commit: r1087520 [29/35] - in /incubator/rave/donations/ogce-gadget-container: ./ config/ config/shindig-1.1-BETA5/ config/shindig-2.0.0/ db-cleaner/ examples/ examples/src/ examples/src/main/ examples/src/main/java/ examples/src/main/java/cgl/ exa...

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/ExpBuilderHome.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/ExpBuilderHome.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/ExpBuilderHome.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/ExpBuilderHome.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,3 @@
+<html>
+Home view not supported.  Click "maximize".
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/ExperimentBuilder.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/ExperimentBuilder.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/ExperimentBuilder.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/ExperimentBuilder.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" ?> 
+<Module>
+  <ModulePrefs title="ExperimentBuilder"
+     title_url=""
+     description="A gadget to wrap ExperimentBuilder"
+     height="250" 
+     screenshot="http://img227.imageshack.us/img227/9835/expbuilder.jpg"
+     thumbnail="http://img227.imageshack.us/img227/9835/expbuilder.jpg"
+     scrolling="true"
+     author="Raminder Singh"
+     author_affiliation="OGCE, IU"
+     author_email="ramifnu@indiana.edu" 
+     author_location="Innovation Center, IU"
+	 category="tools"
+     author_link=""
+     author_photo=""
+     author_aboutme=""
+     author_quote="" >
+    <Require feature="rpc"/>
+    <Require feature="dynamic-height"/>
+  </ModulePrefs>
+
+  <UserPref name="expbuilder_url" datatype="string" 
+    default_value="/expbuilder/pages/project.jsf"
+    display_name="Expbuilder url" />
+
+  <Content type="html" view="home, canvas">
+     <![CDATA[
+     <script type="text/javascript">
+      function getUserInfoCB(msg) {
+        var obj = eval('('+msg+')');
+        var username = obj.username;
+
+        var prefs = new gadgets.Prefs();
+        var url = prefs.getString('expbuilder_url');
+        if(url == null || url.indexOf("?") == -1)
+          url += "?"
+        url += "username=" + encodeURIComponent(username);
+        window.location = url;
+      }
+
+      function fetchInfoFromCt () {
+        gadgets.rpc.call("..", "getUserInfo", getUserInfoCB);
+      }
+
+      fetchInfoFromCt();
+    </script>
+    ]]>
+  </Content> 
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/FriendConnectMembers.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/FriendConnectMembers.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/FriendConnectMembers.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/FriendConnectMembers.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,29 @@
+<html>
+<body>
+  <!-- Include the Google Friend Connect javascript library. -->
+  <script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+  <!-- Define the div tag where the gadget will be inserted. -->
+  <div id="div-4719709228063302739" style="width:276px;border:1px solid #cccccc;"></div>
+  <!-- Render the gadget into a div. -->
+<script type="text/javascript">
+var skin = {};
+skin['BORDER_COLOR'] = '#cccccc';
+skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+skin['ENDCAP_TEXT_COLOR'] = '#333333';
+skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+skin['CONTENT_BG_COLOR'] = '#ffffff';
+skin['CONTENT_LINK_COLOR'] = '#0000cc';
+skin['CONTENT_TEXT_COLOR'] = '#333333';
+skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+skin['NUMBER_ROWS'] = '4';
+google.friendconnect.container.setParentUrl('/gadgets-repo/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderMembersGadget(
+ { id: 'div-4719709228063302739',
+   site: '16707400350554686557' },
+  skin);
+</script>
+</body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/FriendConnectMembers.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/FriendConnectMembers.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/FriendConnectMembers.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/FriendConnectMembers.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,43 @@
+<Module>
+  <ModulePrefs
+	  title="FriendConnect Members List"
+	  height="350">
+	 <Require feature="dynamic-height"/>
+    <Require feature="opensocial-0.8" />
+  </ModulePrefs>
+
+  <Content type="html" view="home">
+	 <![CDATA[
+<html>
+<body>
+  <!-- Include the Google Friend Connect javascript library. -->
+  <script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+  <!-- Define the div tag where the gadget will be inserted. -->
+  <div id="div-4719709228063302739" style="width:276px;border:1px solid #cccccc;"></div>
+  <!-- Render the gadget into a div. -->
+<script type="text/javascript">
+var skin = {};
+skin['BORDER_COLOR'] = '#cccccc';
+skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+skin['ENDCAP_TEXT_COLOR'] = '#333333';
+skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+skin['CONTENT_BG_COLOR'] = '#ffffff';
+skin['CONTENT_LINK_COLOR'] = '#0000cc';
+skin['CONTENT_TEXT_COLOR'] = '#333333';
+skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+skin['NUMBER_ROWS'] = '4';
+google.friendconnect.container.setParentUrl('/gadgets-repo/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderMembersGadget(
+ { id: 'div-4719709228063302739',
+   site: '@friendConnectSiteID@' },
+  skin);
+</script>
+</body>
+</html>
+]]>
+</Content>
+</Module>
+  

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxGWTHubClient1.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxGWTHubClient1.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxGWTHubClient1.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxGWTHubClient1.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,12 @@
+<Module>
+  <ModulePrefs
+      title="OpenAjax GWT Hub Client 1"
+      author_email="rmai@indiana.edu"
+      description="OpenAjax Hub" 
+      height="400">
+      <Require feature="rpc"/>
+      <Require feature="dynamic-height"/>
+  </ModulePrefs>
+  <Content type="url" view="home, canvas" href="http://gwt-test-app1.appspot.com/"></Content>
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxGWTHubClient2.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxGWTHubClient2.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxGWTHubClient2.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxGWTHubClient2.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,12 @@
+<Module>
+  <ModulePrefs
+      title="OpenAjax GWT Hub Client 2"
+      author_email="rmai@indiana.edu"
+      description="OpenAjax Hub" 
+      height="400">
+      <Require feature="rpc"/>
+      <Require feature="dynamic-height"/>
+  </ModulePrefs>
+  <Content type="url" view="home, canvas" href="http://gwt-test-app2.appspot.com/"></Content>
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient1.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient1.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient1.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient1.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,59 @@
+<html>
+<head>
+  <title>ClientApp1 </title>
+
+  <!-- Load the OpenAjax Hub. This example uses the "release/all" configuration -->
+  <!-- <script src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/GWT/frames/OpenAjax_Hub_2.0.3_r1186/release/all/OpenAjaxManagedHub-all.js"></script> -->
+
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/OpenAjax.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/json2.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/crypto.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/iframe.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/FIM.js"></script>  
+  <script type="text/javascript"
+    src=https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/"www/js/OpenAjax_Hub/src/containers/iframe/NIX.js"></script>
+
+  <script type="text/javascript">
+    function client2SecurityAlertHandler(source, alertType) {
+      // Handle security alerts
+    }
+
+    /* Callback that is invoked upon successful connection to the Managed Hub */
+    function connectCompleted ( hubClient, success, error ) {
+      if (success) {
+        /* Call hubClient.publish(...) to publish messages  */
+        /* Call hubClient.subscribe(...) to subscribe to message topics */
+      }
+    }
+
+    /* Application initializes in response to document load event */
+    function loadEventHandler() {
+      hubClient = new OpenAjax.hub.IframeHubClient({
+        HubClient: {
+          onSecurityAlert: client2SecurityAlertHandler
+        }
+      });
+
+      // Connect to the ManagedHub
+      hubClient.connect( connectCompleted );
+    }
+
+    function clickEvent() {
+      hubClient.publish('org.example.topics.textmessage','Message from Client2');
+    }
+  </script>
+</head>
+<body onload="loadEventHandler();">
+  <div style="border:black">
+    <h3>ClientApp2 content</h3>
+  <p>
+    <input type="button" value="Click to send message" onclick="clickEvent()"/>
+  </p>
+  </div>
+</body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient1.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient1.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient1.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient1.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,74 @@
+<Module>
+    <ModulePrefs
+        title="OpenAjax Hub Client 1"
+        author_email="zhguo@indiana.edu"
+        description="OpenAjax Hub" 
+        height="400">
+        <Require feature="rpc"/>
+        <Require feature="dynamic-height"/>
+    </ModulePrefs>
+  <Content type="html" view="home, canvas">
+<![CDATA[
+
+<html>
+<head>
+  <title>ClientApp1 </title>
+
+  <!-- Load the OpenAjax Hub. This example uses the "release/all" configuration -->
+  <!-- <script src="http://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/GWT/frames/OpenAjax_Hub_2.0.3_r1186/release/all/OpenAjaxManagedHub-all.js"></script> -->
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/OpenAjax-mashup.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/json2.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/crypto.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/iframe.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/FIM.js"></script>  
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/NIX.js"></script>
+
+  <script type="text/javascript">
+    function client2SecurityAlertHandler(source, alertType) {
+      // Handle security alerts
+    }
+
+    /* Callback that is invoked upon successful connection to the Managed Hub */
+    function connectCompleted ( hubClient, success, error ) {
+      if (success) {
+        /* Call hubClient.publish(...) to publish messages  */
+        /* Call hubClient.subscribe(...) to subscribe to message topics */
+      }
+    }
+
+    /* Application initializes in response to document load event */
+    function loadEventHandler() {
+      hubClient = new OpenAjax.hub.IframeHubClient({
+        HubClient: {
+          onSecurityAlert: client2SecurityAlertHandler
+        }
+      });
+
+      // Connect to the ManagedHub
+      hubClient.connect( connectCompleted );
+    }
+
+    function clickEvent() {
+      hubClient.publish('org.example.topics.textmessage','Message from Client1');
+    }
+  </script>
+</head>
+<body onload="loadEventHandler();">
+  <div style="border:black">
+    <h3>ClientApp1 content</h3>
+  <p>
+    <input type="button" value="Click to send message" onclick="clickEvent()"/>
+  </p>
+  </div>
+</body>
+</html>
+]]>
+</Content>
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient2.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient2.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient2.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient2.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,61 @@
+<html>
+<head>
+  <title>ClientApp2 </title>
+
+  <!-- Load the OpenAjax Hub. This example uses the "release/all" configuration -->
+  <script src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/GWT/frames/OpenAjax_Hub_2.0.3_r1186/release/all/OpenAjaxManagedHub-all.js"></script>
+
+  <script type="text/javascript">
+    function client3SecurityAlertHandler(source, alertType) {
+      // Handle security alerts
+    }
+
+    /* Callback that is invoked upon successful connection to the Managed Hub */
+    function connectCompleted ( hubClient, success, error ) {
+      if (success) {
+        /* Call hubClient.publish(...) to publish messages  */
+        /* Call hubClient.subscribe(...) to subscribe to message topics */
+    	  hubClient.subscribe('org.example.topics.textmessage', onData);
+      }
+    }
+    
+    // Callback called when a subscription receives data
+    function onData(topic, publisherData, subscriberData) {
+      if (typeof publisherData === "string") {
+        var messageArea = document.getElementById('messageArea');
+        // XSS protection: createTextNode strips HTML markup
+        var text = document.createTextNode(publisherData);
+        messageArea.innerHTML = ""; 
+        messageArea.appendChild(text);
+      }
+    }
+
+    /* Application initializes in response to document load event */
+    function loadEventHandler() {
+      hubClient = new OpenAjax.hub.IframeHubClient({
+        HubClient: {
+          onSecurityAlert: client3SecurityAlertHandler
+        }
+      });
+
+      // Connect to the ManagedHub
+      hubClient.connect( connectCompleted );
+      
+      
+    }
+
+    function clickEvent() {
+      hubClient.publish('org.example.topics.textmessage','Message from Client3');
+    }
+  </script>
+</head>
+<body onload="loadEventHandler();">
+  <div style="border:black">
+    <h3>ClientApp3 content</h3>
+  <div id="messageArea"></div>
+  <p>
+    <input type="button" value="Click to send message" onclick="clickEvent()"/>
+  </p>
+  </div>
+</body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient2.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient2.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient2.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient2.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,90 @@
+<Module>
+    <ModulePrefs
+        title="OpenAjax Hub Client 2"
+        author_email="zhguo@indiana.edu"
+        description="OpenAjax Hub" 
+        height="400">
+        <Require feature="rpc"/>
+        <Require feature="dynamic-height"/>
+    </ModulePrefs>
+  <Content type="html" view="home, canvas">
+<![CDATA[
+
+<html>
+<head>
+  <title>ClientApp2 </title>
+
+  <!-- Load the OpenAjax Hub. This example uses the "release/all" configuration -->
+  <!-- <script src="http://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/GWT/frames/OpenAjax_Hub_2.0.3_r1186/release/all/OpenAjaxManagedHub-all.js"></script> -->
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/OpenAjax-mashup.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/json2.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/crypto.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/iframe.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/FIM.js"></script>  
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/NIX.js"></script>
+
+  <script type="text/javascript">
+    function client3SecurityAlertHandler(source, alertType) {
+      // Handle security alerts
+    }
+
+    /* Callback that is invoked upon successful connection to the Managed Hub */
+    function connectCompleted ( hubClient, success, error ) {
+      if (success) {
+        /* Call hubClient.publish(...) to publish messages  */
+        /* Call hubClient.subscribe(...) to subscribe to message topics */
+    	  hubClient.subscribe('org.example.topics.textmessage', onData);
+      }
+    }
+    
+    // Callback called when a subscription receives data
+    function onData(topic, publisherData, subscriberData) {
+      if (typeof publisherData === "string") {
+        var messageArea = document.getElementById('messageArea');
+        // XSS protection: createTextNode strips HTML markup
+        var text = document.createTextNode(publisherData);
+        messageArea.innerHTML = ""; 
+        messageArea.appendChild(text);
+      }
+    }
+
+    /* Application initializes in response to document load event */
+    function loadEventHandler() {
+      hubClient = new OpenAjax.hub.IframeHubClient({
+        HubClient: {
+          onSecurityAlert: client3SecurityAlertHandler
+        }
+      });
+
+      // Connect to the ManagedHub
+      hubClient.connect( connectCompleted );
+      
+      
+    }
+
+    function clickEvent() {
+      hubClient.publish('org.example.topics.textmessage','Message from Client2');
+    }
+  </script>
+</head>
+<body onload="loadEventHandler();">
+  <div style="border:black">
+    <h3>ClientApp2 content</h3>
+  <div id="messageArea"></div>
+  <p>
+    <input type="button" value="Click to send message" onclick="clickEvent()"/>
+  </p>
+  </div>
+</body>
+</html>
+
+]]>
+</Content>
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient3.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient3.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient3.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenAjaxHubClient3.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,90 @@
+<Module>
+    <ModulePrefs
+        title="OpenAjax Hub Client 4"
+        author_email="zhguo@indiana.edu"
+        description="OpenAjax Hub" 
+        height="400">
+        <Require feature="rpc"/>
+        <Require feature="dynamic-height"/>
+    </ModulePrefs>
+  <Content type="html" view="home, canvas">
+<![CDATA[
+
+<html>
+<head>
+  <title>ClientApp4 </title>
+
+  <!-- Load the OpenAjax Hub. This example uses the "release/all" configuration -->
+  <!-- <script src="http://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/GWT/frames/OpenAjax_Hub_2.0.3_r1186/release/all/OpenAjaxManagedHub-all.js"></script> -->
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/OpenAjax-mashup.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/json2.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/crypto.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/iframe.js"></script>
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/FIM.js"></script>  
+  <script type="text/javascript"
+    src="https://ogce.svn.sourceforge.net/svnroot/ogce/ShindigOGCE/ishindig-trunk/ishindig-webapp/src/main/webapp/www/js/OpenAjax_Hub/src/containers/iframe/NIX.js"></script>
+
+  <script type="text/javascript">
+    function client3SecurityAlertHandler(source, alertType) {
+      // Handle security alerts
+    }
+
+    /* Callback that is invoked upon successful connection to the Managed Hub */
+    function connectCompleted ( hubClient, success, error ) {
+      if (success) {
+        /* Call hubClient.publish(...) to publish messages  */
+        /* Call hubClient.subscribe(...) to subscribe to message topics */
+    	  hubClient.subscribe('org.example.topics.textmessage', onData);
+      }
+    }
+    
+    // Callback called when a subscription receives data
+    function onData(topic, publisherData, subscriberData) {
+      if (typeof publisherData === "string") {
+        var messageArea = document.getElementById('messageArea');
+        // XSS protection: createTextNode strips HTML markup
+        var text = document.createTextNode(publisherData);
+        messageArea.innerHTML = ""; 
+        messageArea.appendChild(text);
+      }
+    }
+
+    /* Application initializes in response to document load event */
+    function loadEventHandler() {
+      hubClient = new OpenAjax.hub.IframeHubClient({
+        HubClient: {
+          onSecurityAlert: client3SecurityAlertHandler
+        }
+      });
+
+      // Connect to the ManagedHub
+      hubClient.connect( connectCompleted );
+      
+      
+    }
+
+    function clickEvent() {
+      hubClient.publish('org.example.topics.textmessage','Message from Client3');
+    }
+  </script>
+</head>
+<body onload="loadEventHandler();">
+  <div style="border:black">
+    <h3>ClientApp4 content</h3>
+  <div id="messageArea"></div>
+  <p>
+    <input type="button" value="Click to send message" onclick="clickEvent()"/>
+  </p>
+  </div>
+</body>
+</html>
+
+]]>
+</Content>
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenSocialGFC.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenSocialGFC.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenSocialGFC.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/OpenSocialGFC.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+    <title>Your website's title</title>
+    <!-- Load the Google AJAX API Loader -->
+    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
+
+    <!-- Load the Google Friend Connect javascript library. -->
+    <script type="text/javascript">
+      google.load('friendconnect', '0.8');
+    </script>
+
+    <!-- Initialize the Google Friend Connect OpenSocial API. -->
+    <script type="text/javascript">
+    google.friendconnect.container.initOpenSocialApi({
+      site: '####################',
+      onload: function(securityToken) { initAllData(); }
+    });
+    </script>
+  </head>
+  <body>
+    <script type="text/javascript">
+      function initAllData() {
+        var req = opensocial.newDataRequest();
+        req.add(req.newFetchPersonRequest("OWNER"), "owner_data");
+        req.add(req.newFetchPersonRequest("VIEWER"), "viewer_data");
+        var idspec = new opensocial.IdSpec({
+            'userId' : 'OWNER',
+            'groupId' : 'FRIENDS'
+        });
+        req.add(req.newFetchPeopleRequest(idspec), 'site_friends');
+        req.send(onData);
+      };
+      
+      function onData(data) {
+        if (!data.get("owner_data").hadError()) {
+          var owner_data = data.get("owner_data").getData();
+          document.getElementById("site-name").innerHTML = owner_data.getDisplayName();
+        }
+
+        var viewer_info = document.getElementById("viewer-info");
+        if (data.get("viewer_data").hadError()) {
+          viewer_info.innerHTML = "<a href='#' onclick='google.friendconnect.requestSignIn()'>Sign in</a>";
+        } else {
+          var viewer = data.get("viewer_data").getData();
+          viewer_info.innerHTML = "Hello, " + viewer.getDisplayName() + " " +
+              "<a href='#' onclick='google.friendconnect.requestSettings()'>Settings</a> | " + 
+              "<a href='#' onclick='google.friendconnect.requestInvite()'>Invite</a> | " +
+              "<a href='#' onclick='google.friendconnect.requestSignOut()'>Sign out</a>";
+        }
+
+        if (!data.get("site_friends").hadError()) {
+          var site_friends = data.get("site_friends").getData();
+          var list = document.getElementById("friends-list");
+          list.innerHTML = "";
+          site_friends.each(function(friend) {
+            list.innerHTML += "<li>" + friend.getDisplayName() + "</li>";
+          });
+        }
+      };
+    </script>
+    <p>The name of this site is <strong><span id="site-name"></span></p>
+    <p><div id="gfc-button"></div></p>
+    <p id="viewer-info"></p>
+    <p>The members of this site are:</p>
+    <ol id="friends-list"></ol>
+  </body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/PolargridFinal.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/PolargridFinal.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/PolargridFinal.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/PolargridFinal.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,308 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Module>
+<ModulePrefs
+title="Polargrid Filter Gadget"
+author="Raminder S"
+author_email="ramifnu+at+indiana.edu"
+height="250"
+description="Map filter gadget to integrate Scientific Command line application with Picasa and Google Calender">
+<Require feature="opensocial-0.8" />
+<Require feature="dynamic-height" />
+<Require feature="views" />
+</ModulePrefs>
+<UserPref name="gfacRESTURL" display_name="gfac rest service endpoint" datatype="string" default_value="http://129.79.49.155:8088/PolarGridREST/gfac" required="true" />
+<UserPref name="gfacRESTResultQueryURL" display_name="gfac result query url" datatype="string" default_value="http://129.79.49.155:8088/PolarGridREST/results" required="true" />
+<UserPref name="resultFormat" display_name="format of returned results" datatype="string" default_value="json" required="true" />
+
+<UserPref name="matlabLocation" display_name="Location of MATLAB on the server" datatype="string" default_value="/opt/MATLAB/MATLAB_Compiler_Runtime/v710/" required="true" />
+<UserPref name="outputDir" display_name="Output directory of image on server" datatype="string" default_value="~/apache-tomcat-5.5.27/webapps/webdav/" required="true" />
+<UserPref name="imageName" display_name="Prefix of the image name" datatype="string" default_value="output" required="false" />
+<UserPref name="imageSize" display_name="Size of JPEG image you went to create" datatype="string" default_value="[1024,800]" required="false" />
+
+<Content type="html"><![CDATA[
+<script type="text/javascript">
+var nLoading = 1;
+function init() {
+//to adject height
+var resultDivEle = document.getElementById("result");
+resultDivEle.style.display="none";
+gadgets.window.adjustHeight();
+}
+function loadingSign() {
+//alert('Loading Image');
+var max = 10;
+var str = "Loading...";
+for(var i = 0; i < nLoading; ++i)
+str += ".";
+++nLoading;
+if (nLoading > max)
+nLoading = 1;
+var ele = document.getElementById("dotspan");
+ele.innerHTML = str;
+}
+
+function invokeServiceSync() {
+invokeService("sync");
+}
+
+function invokeServiceAsync() {
+invokeService("async");
+}
+
+function invokeService(mode) {
+//alert("Here");
+var userPrefs = new gadgets.Prefs();
+var gfacRESTURL = userPrefs.getString("gfacRESTURL");
+if(gfacRESTURL == null || gfacRESTURL == "") {
+return null;
+} else {
+if(gfacRESTURL.charAt(gfacRESTURL.length-1) != "/")
+gfacRESTURL += "/";
+}
+
+var resultFormat = userPrefs.getString("resultFormat");
+if(resultFormat == null || resultFormat == "") {
+return null;
+} else {
+if(resultFormat.charAt(0) == "/")
+resultFormat = resultFormat.substr(1, resultFormat.length-1);
+}
+var gfacRESTFullURL = gfacRESTURL + resultFormat;
+if (mode != null)
+var dataNameValue = document.app1.dataName.value;
+var filterNameValue = 0;
+for( i = 0; i < document.app1.filterName.length; i++ )
+{
+if( document.app1.filterName[i].checked == true )
+filterNameValue = document.app1.filterName[i].value;
+}
+var filterParamValue = 0;
+if(filterNameValue =="median"){
+var selectObj = document.app1.filterParamM;
+var selIndex = selectObj.selectedIndex;
+filterParamValue = selectObj.options[selIndex].value;
+}else if(filterNameValue =="wiener"){
+var selectObj = document.app1.filterParamW;
+var selIndex = selectObj.selectedIndex;
+filterParamValue = selectObj.options[selIndex].value;
+}else if (filterNameValue =="fir1"){
+filterParamValue = document.app1.filterParamF.value;
+}else{
+alert("Please select right filter");
+return false;
+}
+   gfacRESTFullURL += "?mode=" + escape(mode) + "&dataName=" + escape(dataNameValue)+ "&filterName="+ escape(filterNameValue);
+   gfacRESTFullURL += "&matlabLocation="+ escape(userPrefs.getString("matlabLocation"));
+   gfacRESTFullURL += "&filterParam=" + escape(filterParamValue);
+   gfacRESTFullURL += "&outputDir="+ escape(userPrefs.getString("outputDir"));
+   gfacRESTFullURL += "&imageSize=" + escape(userPrefs.getString("imageSize"));
+   gfacRESTFullURL += "&imageName="+ escape(userPrefs.getString("imageName"));
+
+
+//alert(gfacRESTFullURL);
+var params = {};
+params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.NONE;
+params[gadgets.io.RequestParameters.REFRESH_INTERVAL] = 1;
+
+gadgets.io.makeRequest(gfacRESTFullURL, invokeCallback, params);
+}
+
+function testProxyURL(url, params) {
+return gadgets.io.getProxyUrl(url, params);
+}
+
+invocationid = -1;
+
+function getResult(invocationId, format) {
+var userPrefs = new gadgets.Prefs();
+var gfacRESTResultQueryURL = userPrefs.getString("gfacRESTResultQueryURL");
+if(gfacRESTResultQueryURL == null || gfacRESTResultQueryURL == "") {
+return null;
+} else {
+if(gfacRESTResultQueryURL.charAt(gfacRESTResultQueryURL.length-1) == "/")
+gfacRESTResultQueryURL = gfacRESTResultQueryURL.substr(0, gfacRESTResultQueryURL.length-1);
+}
+var params = {};
+params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.NONE;
+params[gadgets.io.RequestParameters.REFRESH_INTERVAL] = 1;
+
+gfacRESTResultQueryURL += "?invocationid=" + invocationId + "&format=" + format;
+gadgets.io.makeRequest(gfacRESTResultQueryURL, getResultCallback, params);
+}
+
+function getResultCallback (result) {
+var rawText = result.text;
+var errors = result.errors;
+if (errors.length > 0) {
+alert("Error occurred during makerequest invocation");
+} else {
+var data = result.data;
+var dataobj = eval("("+data+")");
+if (dataobj.status == 0) {
+var picasaHtmlHref = dataobj.data.picasaHtmlHref;
+var calendarHref = dataobj.data.calendarHref;
+var imageURL = dataobj.data.imageURL;
+var twitterHref = dataobj.data.twitterStatusHref;
+
+var picasaDivEle = document.getElementById("picasadiv");
+var calendarDivEle = document.getElementById("calendardiv");
+var twitterDivEle = document.getElementById("twitterdiv");
+var formdataDivEle = document.getElementById("formdata");
+formdataDivEle.style.display="none";
+var resultDivEle = document.getElementById("result");
+resultDivEle.style.display="block";
+
+picasaDivEle.innerHTML = "<a href='" + picasaHtmlHref +
+"' target='_blank' ><img src='"+imageURL+"' alt='Polargrid filter Image' align='center' width='150'/></a>";
+calendarDivEle.innerHTML = "<a href='" + calendarHref +
+"' target='_blank' >Google Calendar</a>";
+twitterDivEle.innerHTML = "<a href='" + twitterHref +
+"' target='_blank' >Twitter</a>";
+clearInterval(loadingSignInterval);
+var ele = document.getElementById("dotspan");
+ele.innerHTML = "";
+
+gadgets.window.adjustHeight();
+} else {
+setTimeout('getResult('+invocationid+', "json")', 5000);
+}
+}
+}
+
+function invokeCallback(result) {
+var rawText = result.text;
+var errors = result.errors;
+if (errors.length > 0) {
+alert("Error occurred during makerequest invocation");
+} else {
+var data = result.data;
+var dataobj = eval("("+data+")");
+var mode = dataobj.data.mode;
+if (mode == "async") {
+invocationid = dataobj.data.invocationId;
+setTimeout('getResult('+invocationid+', "json")', 5000);
+loadingSignInterval = setInterval('loadingSign();', 700);
+} else {
+alert("TODO");
+}
+}
+}
+function formVisible(){
+var formdataDivEle = document.getElementById("formdata");
+var resultDivEle = document.getElementById("result");
+resultDivEle.style.display="none";
+formdataDivEle.style.display="block";
+gadgets.window.adjustHeight();
+}
+gadgets.util.registerOnLoadHandler(init);
+</script>
+
+<div id="formdata">
+<form name="app1" action="" method="post">
+<table width="90%" border="0" align="center" cellpadding="4" cellspacing="0">
+<tr>
+<td width="26%" valign="top"><strong>Dataset</strong></td>
+<td width="20%" valign="top"><strong>Filter</strong></td>
+<td width="54%" valign="top"><strong>Filter Parameters </strong></td>
+</tr>
+<tr>
+<td valign="top"><label><input name="dataName" type="radio" id="File Request_0" value="helheim" checked="checked"/>Helheim Dataset</label>
+</td>
+<td valign="top" ><label><input type="radio" name="filterName" value="wiener" id="filterName_0" />Wiener</label></td>
+<td valign="top"><select name="filterParamW" id="filterParamW">
+<option value="[5,5]" selected="selected">5,5</option>
+<option value="[6,6]">6,6</option>
+<option value="[7,7]">7,7</option>
+<option value="[8,8]">8,8</option>
+<option value="[9,9]">9,9</option>
+<option value="[10,10]">10,10</option>
+<option value="[11,11]">11,11</option>
+<option value="[12,12]">12,12</option>
+<option value="[13,13]">13,13</option>
+<option value="[14,14]">14,14</option>
+<option value="[15,15]">15,15</option>
+<option value="[16,16]">16,16</option>
+<option value="[17,17]">17,17</option>
+<option value="[18,18]">18,18</option>
+<option value="[19,19]">19,19</option>
+<option value="[20,20]">20,20</option>
+<option value="[21,21]">21,21</option>
+<option value="[22,22]">22,22</option>
+<option value="[23,23]">23,23</option>
+<option value="[24,24]">24,24</option>
+<option value="[25,25]">25,25</option>
+<option value="[26,26]">26,26</option>
+<option value="[27,27]">27,27</option>
+<option value="[28,28]">28,28</option>
+<option value="[29,29]">29,29</option>
+<option value="[30,30]">30,30</option>
+</select></td>
+</tr>
+<tr>
+<td valign="top">&nbsp;</td>
+<td valign="top"><label>
+<input type="radio" name="filterName" value="median" id="filterName_1" />Median</label></td>
+<td valign="top"><select name="filterParamM" id="filterParamM">
+<option value="[5,5]" selected="selected">5,5</option>
+<option value="[6,6]">6,6</option>
+<option value="[7,7]">7,7</option>
+<option value="[8,8]">8,8</option>
+<option value="[9,9]">9,9</option>
+<option value="[10,10]">10,10</option>
+<option value="[11,11]">11,11</option>
+<option value="[12,12]">12,12</option>
+<option value="[13,13]">13,13</option>
+<option value="[14,14]">14,14</option>
+<option value="[15,15]">15,15</option>
+<option value="[16,16]">16,16</option>
+<option value="[17,17]">17,17</option>
+<option value="[18,18]">18,18</option>
+<option value="[19,19]">19,19</option>
+<option value="[20,20]">20,20</option>
+<option value="[21,21]">21,21</option>
+<option value="[22,22]">22,22</option>
+<option value="[23,23]">23,23</option>
+<option value="[24,24]">24,24</option>
+<option value="[25,25]">25,25</option>
+<option value="[26,26]">26,26</option>
+<option value="[27,27]">27,27</option>
+<option value="[28,28]">28,28</option>
+<option value="[29,29]">29,29</option>
+<option value="[30,30]">30,30</option>
+</select></td>
+</tr>
+<tr>
+<td valign="top">&nbsp;</td>
+<td valign="top" ><label><input type="radio" name="filterName" value="fir1" id="filterName_2" />FIR1</label></td>
+<td valign="top"><strong>FIR1 Cutoff Frequency</strong><br />(0.001 to 0.1)<input name="filterParamF" type="text" id="filterParamF" size="10" maxlength="5" /></td>
+</tr>
+<tr>
+<td colspan="3">
+<div id="formdata1" align="center">
+<input type="button" name="button" id="button" value="Run Filter" onclick='invokeServiceAsync();'/>
+</div>
+<div><span id="dotspan"></span></div>
+</td>
+</tr>
+</table>
+</form>
+</div>
+
+<table id='result' width="90%" border="0" align="center" cellpadding="4" cellspacing="0">
+<tr>
+<td>
+<div id="picasadiv"></div>
+</td>
+<td>
+<div id="calendardiv"></div>
+<br>
+<div id="twitterdiv"></div>
+<br>
+<div id="back" align='center'>
+<input type="button" name="button" id="button" value="Run Filter Again" onclick='formVisible();'/>
+</div>
+</td>
+</tr>
+</table>
+]]></Content>
+</Module>
\ No newline at end of file

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/Poll.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/Poll.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/Poll.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/Poll.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,29 @@
+<html>
+<body>
+<!-- Include the Google Friend Connect javascript library. -->
+<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+<!-- Define the div tag where the gadget will be inserted. -->
+<div id="div-4847265783421316060" style="width:250px;border:1px solid #cccccc;"></div>
+<!-- Render the gadget into a div. -->
+<script type="text/javascript">
+var skin = {};
+skin['BORDER_COLOR'] = '#cccccc';
+skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+skin['ENDCAP_TEXT_COLOR'] = '#333333';
+skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+skin['ALTERNATE_BG_COLOR'] = '#e6e6e6';
+skin['CONTENT_BG_COLOR'] = '#ffffff';
+skin['CONTENT_LINK_COLOR'] = '#0000cc';
+skin['CONTENT_TEXT_COLOR'] = '#333333';
+skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+google.friendconnect.container.setParentUrl('/gadgets-repo/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderOpenSocialGadget(
+ { id: 'div-4847265783421316060',
+   url:'http://www.google.com/friendconnect/gadgets/poll.xml',
+   site: '16707400350554686557' },
+  skin);
+</script>
+</body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/QA.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/QA.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/QA.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/QA.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,28 @@
+<html>
+<body>
+<!-- Include the Google Friend Connect javascript library. -->
+<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+<!-- Define the div tag where the gadget will be inserted. -->
+<div id="div-3036445534144042462" style="width:300px;border:1px solid #cccccc;"></div>
+<!-- Render the gadget into a div. -->
+<script type="text/javascript">
+var skin = {};
+skin['BORDER_COLOR'] = '#cccccc';
+skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+skin['ENDCAP_TEXT_COLOR'] = '#333333';
+skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+skin['CONTENT_BG_COLOR'] = '#ffffff';
+skin['CONTENT_LINK_COLOR'] = '#0000cc';
+skin['CONTENT_TEXT_COLOR'] = '#333333';
+skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+google.friendconnect.container.setParentUrl('/gadgets-repo/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderOpenSocialGadget(
+ { id: 'div-3036445534144042462',
+   url:'http://answersense.appspot.com/spec/latest.xml',
+   site: '@friendConnectSiteID@' },
+  skin);
+</script>
+</body></html>
\ No newline at end of file

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/QA.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/QA.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/QA.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/QA.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Module>
+    <ModulePrefs
+        title="Discussion Board"
+        author_email="rsandhu1@gmail.com"
+        description="Open Social App for polargrid"
+        height="400">
+        <Require feature="opensocial-0.8" />
+    </ModulePrefs>
+    <Content type="html" view='home, canvas' >
+      <![CDATA[
+      <!-- Include the Google Friend Connect javascript library. -->
+      <script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+      <!-- Define the div tag where the gadget will be inserted. -->
+      <div id="div-3036445534144042462" style="width:300px;border:1px solid #cccccc;"></div>
+      <!-- Render the gadget into a div. -->
+      <script type="text/javascript">
+      var skin = {};
+      skin['BORDER_COLOR'] = '#cccccc';
+      skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+      skin['ENDCAP_TEXT_COLOR'] = '#333333';
+      skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+      skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+      skin['CONTENT_BG_COLOR'] = '#ffffff';
+      skin['CONTENT_LINK_COLOR'] = '#0000cc';
+      skin['CONTENT_TEXT_COLOR'] = '#333333';
+      skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+      skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+      skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+      google.friendconnect.container.setParentUrl('/gadgets-repo/' /* location of rpc_relay.html and canvas.html */);
+      google.friendconnect.container.renderOpenSocialGadget(
+       { id: 'div-3036445534144042462',
+         url:'http://answersense.appspot.com/spec/latest.xml',
+         site: '@friendConnectSiteID@' },
+        skin);
+      </script>
+      ]]>
+    </Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/Ratings.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/Ratings.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/Ratings.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/Ratings.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,34 @@
+<html>
+<body>
+<!-- Include the Google Friend Connect javascript library. -->
+<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+<!-- Define the div tag where the gadget will be inserted. -->
+<div id="div-6133362448927075047" style="width:282px;border:1px solid #cccccc;"></div>
+<!-- Render the gadget into a div. -->
+<script type="text/javascript">
+var skin = {};
+skin['BORDER_COLOR'] = '#cccccc';
+skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+skin['ENDCAP_TEXT_COLOR'] = '#333333';
+skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+skin['CONTENT_BG_COLOR'] = '#ffffff';
+skin['CONTENT_LINK_COLOR'] = '#0000cc';
+skin['CONTENT_TEXT_COLOR'] = '#333333';
+skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+skin['DEFAULT_COMMENT_TEXT'] = '- add your review here -';
+skin['HEADER_TEXT'] = 'Ratings';
+skin['POSTS_PER_PAGE'] = '5';
+
+google.friendconnect.container.setParentUrl('/gadgets-repo/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderReviewGadget(
+ { id: 'div-6133362448927075047',
+   site: '16707400350554686557',
+   'view-params':{"disableMinMax":"false","scope":"SITE","allowAnonymousPost":"true","startMaximized":"true"}
+ },
+skin);
+</script>
+</body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/RecommendationAggregation.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/RecommendationAggregation.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/RecommendationAggregation.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/RecommendationAggregation.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,33 @@
+<html>
+<body>
+<!-- Include the Google Friend Connect javascript library. -->
+<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+<!-- Define the div tag where the gadget will be inserted. -->
+<div id="div-6585877907190446397" style="width:300px;border:1px solid #cccccc;"></div>
+<!-- Render the gadget into a div. -->
+<script type="text/javascript">
+var skin = {};
+skin['BORDER_COLOR'] = '#cccccc';
+skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+skin['ENDCAP_TEXT_COLOR'] = '#333333';
+skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+skin['CONTENT_BG_COLOR'] = '#ffffff';
+skin['CONTENT_LINK_COLOR'] = '#0000cc';
+skin['CONTENT_TEXT_COLOR'] = '#333333';
+skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+skin['HEADER_TEXT'] = 'Recommended stories';
+skin['RECOMMENDATIONS_PER_PAGE'] = '5';
+google.friendconnect.container.setParentUrl('/gadgets-repo/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderOpenSocialGadget(
+ { id: 'div-6585877907190446397',
+   url:'http://www.google.com/friendconnect/gadgets/recommended_pages.xml',
+   site: '16707400350554686557',
+   'view-params':{"docId":"recommendedPages"}
+ },
+  skin);
+</script>
+</body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/RecommendedPage.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/RecommendedPage.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/RecommendedPage.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/RecommendedPage.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,78 @@
+<html>
+<body>
+<!-- Include the Google Friend Connect javascript library. -->
+<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+<!-- Define the div tag where the gadget will be inserted. -->
+<table border="1">
+  <tr>
+	 <th>Project</th><th>ID</th><th>Date</th><th>Input File</th><th>Output File</th><th>Recommend</th>
+  </tr>
+  <tr>
+	 <td>
+		Northridge
+	 </td>
+	 <td>
+		123456789
+	 </td>
+	 <td>
+		08:43 GMT, Dec 14, 2009
+	 </td>
+	 <td>
+		<a href="http://www.quakesim.org/mpierce/northridge/input">Input</a>
+	 </td>
+	 <td>
+		<a href="http://www.quakeims.org/mpierce/northridge/output">Output</a>
+	 </td>
+	 <td>
+		<div id="div-1095870898733665271" style="width:100%;"></div>
+	 </td>
+  </tr>
+  <tr>
+	 <td>
+		Plieto
+	 </td>
+	 <td>
+		987654321
+	 </td>
+	 <td>
+		10:12 GMT, Dec 12, 2009
+	 </td>
+	 <td>
+		<a href="http://www.quakesim.org/mpierce/plieto/input">Input</a>
+	 </td>
+	 <td>
+		<a href="http://www.quakeims.org/mpierce/plieto/output">Output</a>
+	 </td>
+	 <td>
+		<div id="div-123456789" style="width:100%;"></div>
+	 </td>
+  </tr>
+</table>
+
+<script type="text/javascript">
+var skin = {};
+skin['HEIGHT'] = '21';
+skin['BUTTON_STYLE'] = 'compact';
+skin['BUTTON_TEXT'] = 'Recommend it!';
+skin['BUTTON_ICON'] = 'default';
+google.friendconnect.container.setParentUrl('/gadgets-repo/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderOpenSocialGadget(
+ { id: 'div-1095870898733665271',
+   url:'http://www.google.com/friendconnect/gadgets/recommended_pages.xml',
+   height: 21,
+   site: '16707400350554686557',
+   'view-params':{"pageUrl":"http://www.quakesim.org/mpierce/northridge","pageTitle":"Northridge","docId":"recommendedPages"}
+ },
+  skin);
+
+google.friendconnect.container.renderOpenSocialGadget(
+ { id: 'div-123456789',
+   url:'http://www.google.com/friendconnect/gadgets/recommended_pages.xml',
+   height: 21,
+   site: '16707400350554686557',
+   'view-params':{"pageUrl":"http://www.quakesim.org/mpierce/plieto","pageTitle":"Plieto","docId":"recommendedPages"}
+ },
+  skin);
+</script>
+</body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/SearchEndpoint.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/SearchEndpoint.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/SearchEndpoint.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/SearchEndpoint.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+  <ModulePrefs
+title="Search Endpoints"
+author="Suresh Deivasigamani"
+author_email="sudeivas+at+indiana.edu"
+description="Used Google gadgets API to retrieve the information from the Information Service's REST Web Service. This is basically a client for a REST Web Service. Based on the Resource Id and Service Type, this service lists the available Endpoints along with few information">
+<Require feature="setprefs"/>
+<Require feature="analytics"/>
+<Require feature="dynamic-height"/>
+<Require feature="views" />
+</ModulePrefs>
+  <Content type="html" view="canvas">
+  <![CDATA[
+	<div id="input_div">
+<br />
+<label><b> Select Resource ID and Service Type </b> (You can select multiple 'Service Type')</label><br /><br />
+<table width="800" border="0">
+<tr>
+<td><label><b> Resource ID </b></label></td>
+<td><select name="resource_id" id="resource_id"></select></td>
+<td>&nbsp</td>
+<td><lable><b> Service Type </b></label></td>
+<td><select size="5" name="service_type" id="service_type" multiple></select></td>
+<td>&nbsp</td>
+<td><input name="submit" type="submit" value="submit" onclick=showResult();></td>
+</tr>
+</table>
+</div>
+    <div id="content_div"></div>
+    <script type="text/javascript">
+      // get prefs
+      var prefs = new gadgets.Prefs();
+	// After the user input, the information from the REST web service will be displayed. 
+	function showResult() {
+	document.getElementById('content_div').innerHTML = "";
+	makeEndpointRequest();
+	};
+	
+	// Based on the service type, request is made to the available REST web services
+      function makeEndpointRequest() {    
+        var params = {};  
+        params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.DOM;
+  	var select = document.getElementById("service_type");
+	if(select.options.length > 0) 
+	{
+	for(i=0;i<select.options.length;i++)
+	{
+	if(select.options[i].selected)
+	{
+	var url = "http://info.teragrid.org/restdemo/xml/tg/services/"+select.options[i].value;  
+        gadgets.io.makeRequest(url, endpointResponse, params);
+	}
+	}
+	}
+      };
+
+      function endpointResponse(obj) { 
+	// table to display the data
+	var table = "<table border=\'1\'><thead><tr><th>Kit.Name</th><th>Kit.Version</th><th>Version</th><th>Name</th><th>ResourceID</th><th>Endpoint</th></thead><tbody>";
+        var domdata = obj.data;
+ 	var itemList = domdata.getElementsByTagName("Service");
+	var serviceType = "";
+	var select = document.getElementById("resource_id");
+	if(select.options.length > 0) 
+	{
+	// If 'All' is selected in the ResourceID list box, then list all the Endpoints for all the Resource Ids
+	if(select.options[select.selectedIndex].text == "All")
+	{
+	// Loop through all <service> nodes
+	for (var i = 0; i < itemList.length ; i++) { 
+	var row = "<tr>";
+	row += "<td>" + itemList.item(i).getAttribute("Kit.Name") + "</td>";
+	row += "<td>" + itemList.item(i).getAttribute("Kit.Version") + "</td>";
+	serviceType = itemList.item(i).getAttribute("Type");
+	row += "<td>" + itemList.item(i).getAttribute("Version") + "</td>";
+	row += "<td>" + itemList.item(i).getAttribute("Name") + "</td>";
+	row += "<td>" + itemList.item(i).getAttribute("ResourceID") + "</td>";
+	row += "<td>" + itemList.item(i).getAttribute("Endpoint") + "</td>";
+	row += "</tr>";
+	table += row;
+	}
+	}else
+	// Display on the Endpoints for the ResourceId selected
+	{
+        // Loop through all <service> nodes
+        for (var i = 0; i < itemList.length ; i++) { 
+        var resource = itemList.item(i).getAttribute("ResourceID");
+	if (resource == select.options[select.selectedIndex].text) 
+	{
+	var row = "<tr>";
+	row += "<td>" + itemList.item(i).getAttribute("Kit.Name") + "</td>";
+	row += "<td>" + itemList.item(i).getAttribute("Kit.Version") + "</td>";
+	serviceType = itemList.item(i).getAttribute("Type");
+	row += "<td>" + itemList.item(i).getAttribute("Version") + "</td>";
+	row += "<td>" + itemList.item(i).getAttribute("Name") + "</td>";
+	row += "<td>" + itemList.item(i).getAttribute("ResourceID") + "</td>";
+	row += "<td>" + itemList.item(i).getAttribute("Endpoint") + "</td>";
+	row += "</tr>";
+	table += row;
+	}
+	}
+	}
+	}
+	// Display the data only if a record exists for that particular Service Type
+	if(serviceType != "")
+	{
+	table +="</table><br /><br />";
+	var html = "<label> <b> Service Type : "+serviceType+" </b><br />"+table;
+	var tempDiv = document.createElement('div');
+	tempDiv.innerHTML = html;
+	document.getElementById('content_div').appendChild(tempDiv);
+	}
+    };
+
+	// Get the list of available CTSS Resources
+    function makeResourceRequest() {    
+      var params = {};
+      params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON;
+      // This URL returns a JSON-encoded string that represents a JavaScript object
+      var url = "http://info.teragrid.org/web-apps/json/ctss-resources-v1/";
+      gadgets.io.makeRequest(url, resourceResponse, params);
+    };
+
+	// Process the response and populate the values in the list box
+    function resourceResponse(obj) { 
+      var jsondata = obj.data;
+	var select = document.getElementById("resource_id");
+	// Add a default option - 'All'
+	select.options[select.options.length] = new Option("All","all");
+	// Process returned JS object as an associative array
+      for (var key in jsondata.Resources) {
+        var value = jsondata.Resources[key];
+        for(var item in value) {
+	select.options[select.options.length] = new Option(value[item].ResourceID,value[item].ResourceID);
+	}
+	}
+	};
+	
+	// Get the list of available Service Types
+      function makeServiceTypeRequest() {    
+        var params = {};  
+        params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.DOM;  
+        var url = "http://info.teragrid.org/restdemo/xml/tg/services";  
+        gadgets.io.makeRequest(url, serviceTypeResponse, params);
+      };
+
+	// Process the response and populate the values in the select box
+      function serviceTypeResponse(obj) { 
+        var domdata = obj.data;      
+ 	var itemList = domdata.getElementsByTagName("Service");
+	// Loop through all <service> nodes
+        for (var i = 0; i < itemList.length ; i++) { 
+	var select = document.getElementById("service_type");
+	select.options[select.options.length] = new Option(itemList.item(i).getAttribute("Type"),itemList.item(i).getAttribute("Type"));
+	}
+    };
+
+gadgets.util.registerOnLoadHandler(makeResourceRequest);
+gadgets.util.registerOnLoadHandler(makeServiceTypeRequest);
+    </script>
+  ]]>
+  </Content>
+<Content type = "html" view = "home">
+  <![CDATA[
+<body>
+<img src="http://img3.imageshack.us/img3/433/endpoints.jpg" onclick="maximize();" width=500 />
+Home view not supported.  Click "maximize" or click on the image to maximize.
+</body>
+<script type="text/javascript">
+	function maximize() {
+		var supported_views = gadgets.views.getSupportedViews();
+		gadgets.views.requestNavigateTo(supported_views["canvas"]);
+		}
+</script>
+  ]]>
+</Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/URLGadget.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/URLGadget.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/URLGadget.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/URLGadget.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>URL Gadget</title>
+</head>
+
+<body>
+<p><strong>Simple Step at add a HTML Page as a Gadget</strong></p>
+<p><tt>1. Click on &quot;setting&quot; on top of gadget.</tt></p>
+<p><tt>2. Add your Html page URL in the text area and click Save</tt></p>
+<p><tt>3. Click setting again so that setting option should go away.</tt></p>
+<p>&nbsp;</p>
+</body>
+</html>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/URLGadget.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/URLGadget.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/URLGadget.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/URLGadget.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Module>
+<ModulePrefs 
+        title="Add Prefered URL" 
+        description="Add your Website URL to expose that as Gadget" 
+        author_email="rsandhu1@gmail.com"
+        scrolling="true">
+    <Require feature="opensocial-0.8" />
+    <Require feature="dynamic-height" />
+</ModulePrefs>
+<UserPref name="WebURL" display_name="HTML Page URL" datatype="string" required="true" default_value="URLGadget.html"/>
+<Content type="url" href="__UP_WebURL__"/>
+</Module>
\ No newline at end of file

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/XRegHome.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/XRegHome.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/XRegHome.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/XRegHome.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,4 @@
+<html>
+Home view not supported.  Click "maximize".
+</html>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/XregistryInterface.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/XregistryInterface.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/XregistryInterface.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/XregistryInterface.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" ?> 
+<Module>
+  <ModulePrefs title="RPC test"
+     title_url=""
+     description="A gadget to wrap xregistry"
+     height="250" 
+     screenshot="http://img689.imageshack.us/img689/2326/xregistry.jpg"
+     thumbnail="http://img689.imageshack.us/img689/2326/xregistry.jpg"
+     scrolling="true"
+     author="Gerald Guo"
+     author_affiliation="CGL, IU"
+     author_email="zhguo@indiana.edu" 
+     author_location="Innovation Center, IU"
+	 category="tools"
+     author_link=""
+     author_photo=""
+     author_aboutme=""
+     author_quote="" >
+    <Require feature="rpc"/>
+    <Require feature="dynamic-height"/>
+  </ModulePrefs>
+
+  <UserPref name="xregistry_url" datatype="string" 
+    default_value="/xregistryinterface/pages/Index.jsf"
+    display_name="Xregistry url" />
+
+  <Content type="html" view="home, canvas">
+     <![CDATA[
+     <script type="text/javascript">
+      function getUserInfoCB(msg) {
+        var obj = eval('('+msg+')');
+        var username = obj.username;
+
+        var prefs = new gadgets.Prefs();
+        var url = prefs.getString('xregistry_url');
+        if(url == null || url.indexOf("?") == -1)
+          url += "?"
+        url += "username=" + encodeURIComponent(username);
+        window.location = url;
+      }
+
+      function fetchInfoFromCt () {
+        gadgets.rpc.call("..", "getUserInfo", getUserInfoCB);
+      }
+
+      fetchInfoFromCt();
+    </script>
+    ]]>
+  </Content> 
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/activity-fc.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/activity-fc.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/activity-fc.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/activity-fc.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Module>
+    <ModulePrefs
+        title="Event (CTS)"
+        author_email="jenvor@gmail.com"
+        description="" 
+        height="320">
+        <Require feature="opensocial-0.8" />
+        <Require feature="dynamic-height" />
+    </ModulePrefs>
+    <Content type="html" view="home">
+  <![CDATA[
+<!-- Include the Google Friend Connect javascript library. -->
+<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+<!-- Define the div tag where the gadget will be inserted. -->
+<div id="div-8147689546490890521" style="width:282px;border:1px solid #cccccc;"></div>
+<!-- Render the gadget into a div. -->
+<script type="text/javascript">
+var skin = {};
+skin['HEIGHT'] = '300';
+skin['BORDER_COLOR'] = '#cccccc';
+skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+skin['ENDCAP_TEXT_COLOR'] = '#333333';
+skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+skin['CONTENT_BG_COLOR'] = '#ffffff';
+skin['CONTENT_LINK_COLOR'] = '#0000cc';
+skin['CONTENT_TEXT_COLOR'] = '#333333';
+skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderOpenSocialGadget(
+ { id: 'div-8147689546490890521',
+   url:'http://www.google.com/friendconnect/gadgets/activities.xml',
+   height: 300,
+   site: '@friendConnectSiteID@',
+   'view-params':{"scope":"FRIENDS"}
+ },
+  skin);
+gadgets.util.registerOnLoadHandler(function() {
+  // gadgets.window.adjustHeight();
+});
+</script>
+
+  ]]>
+</Content>
+
+    <Content type="html" view="canvas">
+  <![CDATA[
+<!-- Include the Google Friend Connect javascript library. -->
+<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+<!-- Define the div tag where the gadget will be inserted. -->
+<div id="div-8147689546490890521" style="width:100%;border:1px solid #cccccc;"></div>
+<!-- Render the gadget into a div. -->
+<script type="text/javascript">
+var skin = {};
+skin['HEIGHT'] = '300';
+skin['BORDER_COLOR'] = '#cccccc';
+skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+skin['ENDCAP_TEXT_COLOR'] = '#333333';
+skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+skin['CONTENT_BG_COLOR'] = '#ffffff';
+skin['CONTENT_LINK_COLOR'] = '#0000cc';
+skin['CONTENT_TEXT_COLOR'] = '#333333';
+skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
+google.friendconnect.container.renderOpenSocialGadget(
+ { id: 'div-8147689546490890521',
+   url:'http://www.google.com/friendconnect/gadgets/activities.xml',
+   height: 300,
+   site: '@friendConnectSiteID@',
+   'view-params':{"scope":"FRIENDS"}
+ },
+  skin);
+gadgets.util.registerOnLoadHandler(function() {
+  // gadgets.window.adjustHeight();
+});
+</script>
+
+  ]]>
+</Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/allemail.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/allemail.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/allemail.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/allemail.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,278 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+<ModulePrefs title="All Email" description="Check Your Emails of GMail, Yahoo! Mail, Hotmail, MSN, and Live ; Chat with all your friends on Orkut, Facebook, Picasa, GTalk!, Google Talk, Yahoo Messenger, MSN Messenger, Hi5, My Space, LinkedIn, Friendster  and also Search Google within Orkut or iGoogle." title_url="http://www.technical-tejash.blogspot.com" author="Tejash" author_email="tejash.p.shah@gmail.com" screenshot = "http://tejash.p.shah.googlepages.com/AllMail_screenshot.PNG" thumbnail = "http://tejash.p.shah.googlepages.com/AllEmail_thumb.PNG" height="760" width="500">
+<Require feature="dynamic-height" />
+<Require feature="analytics" />
+<Require feature="setprefs" />
+<Require feature="views" />
+</ModulePrefs>
+<UserPref name="default" display_name="Default" default_value="gtalk" datatype="enum">
+  <EnumValue value="gmail" display_value="GMail" />
+  <EnumValue value="hotmail" display_value="Hotmail / MSN / Live" />
+  <EnumValue value="yahoo" display_value="Yahoo Mail!" />
+  <EnumValue value="hi5" display_value="Hi5" />
+  <EnumValue value="facebook" display_value="Facebook" />
+  <EnumValue value="orkut" display_value="Orkut" />
+  <EnumValue value="myspace" display_value="Myspace" />
+  <EnumValue value="flickr" display_value="Flickr" />
+  <EnumValue value="friendster" display_value="Friendster" />
+  <EnumValue value="linkedin" display_value="LinkedIn" />
+  <EnumValue value="livejournal" display_value="Live Journal" />
+  <EnumValue value="blogger" display_value="Blogger" />
+  <EnumValue value="gtalk" display_value="GTalk!" />
+  <EnumValue value="ymessenger" display_value="Yahoo Messenger" />
+  <EnumValue value="games" display_value="Games" />
+</UserPref>
+ <Content type="html">
+  <![CDATA[
+  <!-- ALm6fM00GHVxs_gY45GXo1uEiyhcaV0XiWKOfxrJFyCxCm1RRGR4yOupkfkPMYZJO4Q5nQBElO3qCBvcZPctfbWUED-sA9i_VP_nluudm8czy3Q73SKmCuNjfo5OHtH9ssCK8-KnRNH7YcaRFHulYNmVZIfK6hE0EA== -->
+<style>
+body, td, p, div, select, input {
+	font-family: trebuchet ms,Arial,sans-serif;
+	font-size:13px;
+	color:#000000;
+}
+</style>
+<script type="text/javascript">
+
+ function send_update()
+  {
+  var title = '<b>Check your all emails of Gmail, YMail!, Hotmail etc. using <a href="http://www.orkut.com/AppInfo.aspx?appId=906830661064">All Mail</a>!</b>';
+
+  var activity_params = {};
+  activity_params[opensocial.Activity.Field.TITLE] = title;
+  var activity = opensocial.newActivity(activity_params);
+
+  opensocial.requestCreateActivity(activity, "HIGH");
+  alert("Your friends have been sent an update for All Mail!");
+}
+</script>
+
+
+<table width="100%" border=0 id="gtable">
+
+<tr>
+
+<td valign=top align="left" >
+  <!-- Google CSE code begins -->
+  <!--
+  <form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
+  <div>
+    <input type="hidden" name="cx" value="partner-pub-1913324761733592:2f5sow-drjn" />
+    <input type="hidden" name="ie" value="UTF-8" />
+    <input type="text" name="q" size="31" width="10"/>
+    <input type="submit" name="sa" value="Search" />
+  </div>
+  </form>
+  -->
+<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script></script>
+<!-- Google CSE Code ends -->
+<form name="mail_form" method="post" action="">
+ <b>Select</b>: <select name="select" id="mail" onChange="rendermailg()">
+	<script>
+		var prefs = new _IG_Prefs(__MODULE_ID__);
+		var selected = prefs.getString("default");
+
+		if (selected == "gmail")
+			document.write("<option value='gmail' selected='selected'>GMail</option>");
+		else
+			document.write("<option value='gmail'>GMail</option>");
+
+		if (selected == "hotmail")
+			document.write("<option value='hotmail' selected='selected'>Hotmail / MSN / Live</option>");
+		else
+			document.write("<option value='hotmail'>Hotmail / MSN / Live</option>");
+
+		if (selected == "yahoo")
+			document.write("<option value='yahoo' selected='selected'>Yahoo Mail!</option>");
+		else
+			document.write("<option value='yahoo'>Yahoo Mail!</option>");
+
+		if (selected == "hi5")
+			document.write("<option value='hi5' selected='selected'>Hi5</option>");
+		else
+			document.write("<option value='hi5'>Hi5</option>");
+
+		if (selected == "facebook")
+			document.write("<option value='facebook' selected='selected'>Facebook</option>");
+		else
+			document.write("<option value='facebook'>Facebook</option>");
+
+		if (selected == "orkut")
+			document.write("<option value='orkut' selected='selected'>Orkut</option>");
+		else
+			document.write("<option value='orkut'>Orkut</option>");
+
+		if (selected == "flickr")
+			document.write("<option value='flickr' selected='selected'>Flickr</option>");
+		else
+			document.write("<option value='flickr'>Flickr</option>");
+
+		if (selected == "friendster")
+			document.write("<option value='friendster' selected='selected'>Friendster</option>");
+		else
+			document.write("<option value='friendster'>Friendster</option>");
+
+		if (selected == "linkedin")
+			document.write("<option value='linkedin' selected='selected'>LinkedIn</option>");
+		else
+			document.write("<option value='linkedin'>LinkedIn</option>");
+
+		if (selected == "livejournal")
+			document.write("<option value='livejournal' selected='selected'>Live Journal</option>");
+		else
+			document.write("<option value='livejournal'>Live Journal</option>");
+
+		if (selected == "ymessenger")
+			document.write("<option value='ymessenger' selected='selected'>Yahoo Messenger</option>");
+		else
+			document.write("<option value='ymessenger'>Yahoo Messenger</option>");
+
+		if (selected == "gtalk")
+			document.write("<option value='gtalk' selected='selected'>GTalk!</option>");
+		else
+			document.write("<option value='gtalk'>GTalk!</option>");
+
+		if (selected == "gtalk")
+			document.write("<option value='gtalk' selected='selected'>Google Talk!</option>");
+		else
+			document.write("<option value='gtalk'>Google Talk!</option>");
+
+		if (selected == "games")
+			document.write("<option value='games' selected='selected'>Games</option>");
+		else
+			document.write("<option value='games'>Games</option>");
+
+		if (selected == "blogger")
+			document.write("<option value='blogger' selected='selected'>Blogger</option>");
+		else
+			document.write("<option value='blogger'>Blogger</option>");
+
+	</script>
+ </select>
+</form>
+</td>
+
+
+</tr>
+
+<tr>
+<td >
+<div id="mmessage"></div>
+</td>
+</tr>
+<tr>
+<td>
+<div id="mailg"></div>
+</td>
+</tr>
+
+</table>
+
+<script language="javascript">
+
+
+function mnotify() {
+
+document.getElementById("mmessage").innerHTML = "";
+gadgets.window.adjustHeight();
+// gadgets.window.adjustWidth();
+}
+
+function rendermailg()
+{
+
+  document.getElementById('mmessage').innerHTML = "<img src='http://pages.google.com/-/images/pie.gif'/> Loading - Please wait...";
+
+  if (document.getElementById("mail").value=="gmail")
+  {
+   document.getElementById('mail_ifr').src =  'http://m.gmail.com';
+  }
+   // wap.yahoo.com also works
+  else if (document.getElementById("mail").value=="yahoo")
+  {
+    document.getElementById('mail_ifr').src =  'http://us.m.yahoo.com/p/mail';
+  }
+  else if (document.getElementById("mail").value=="hotmail")
+  {
+   document.getElementById('mail_ifr').src =  'http://mobile.live.com/hm/';
+  }
+  else if (document.getElementById("mail").value=="hi5")
+  {
+   document.getElementById('mail_ifr').src =  'http://m.hi5.com/';
+  }
+  else if (document.getElementById("mail").value=="facebook")
+  {
+   document.getElementById('mail_ifr').src =  'http://iphone.facebook.com';
+  }
+  else if (document.getElementById("mail").value=="orkut")
+  {
+   document.getElementById('mail_ifr').src =  'http://m.orkut.com';
+  }
+  else if (document.getElementById("mail").value=="myspace")
+  {
+   document.getElementById('mail_ifr').src =  'http://mobile.myspace.com';
+  }
+  else if (document.getElementById("mail").value=="flickr")
+  {
+   document.getElementById('mail_ifr').src =  'http://m.flickr.com';
+  }
+  else if (document.getElementById("mail").value=="friendster")
+  {
+   document.getElementById('mail_ifr').src =  'http://m.friendster.com';
+  }
+  else if (document.getElementById("mail").value=="linkedin")
+  {
+   document.getElementById('mail_ifr').src =  'http://m.linkedin.com/session/new';
+  }
+  else if (document.getElementById("mail").value=="livejournal")
+  {
+   document.getElementById('mail_ifr').src =  'http://www.livejournal.com/mobile/';
+  }
+  else if (document.getElementById("mail").value=="ymessenger")
+  {
+   document.getElementById('mail_ifr').src =  'http://webmessenger.yahoo.com/';
+  }
+  else if (document.getElementById("mail").value=="blogger")
+  {
+   document.getElementById('mail_ifr').src =  'http://www.blogger.com/mobile-start.g';
+  }
+  else if (document.getElementById("mail").value=="games")
+  {
+   document.getElementById('mail_ifr').src =  'http://mobilegames.yahoo.com';
+  }
+  else if (document.getElementById("mail").value=="gtalk")
+  {
+   document.getElementById('mail_ifr').src =  'http://talkgadget.google.com/talkgadget/client';
+  }
+}
+
+function onLoad() {
+document.getElementById('mmessage').innerHTML = "<img src='http://pages.google.com/-/images/pie.gif'> Loading - Please wait...";
+var mail_src_url = 'http://m.gmail.com';
+document.getElementById("mailg").innerHTML = "<iframe id='mail_ifr' src='" + mail_src_url + "' width='100%' height='550' frameborder='0' style='border%23ffffff%7C3px%2C1px+solid+%23999999'  onload='mnotify();'>";
+rendermailg();
+
+
+}
+
+onLoad();
+
+</script>
+
+<div id="message" style="display:block"/>
+
+<div id="mailg" sytle="display:block"/>
+
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("UA-3818008-4");
+pageTracker._trackPageview();
+</script>
+
+    ]]>
+</Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/callback-test.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/callback-test.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/callback-test.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/callback-test.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8" ?> 
+<Module>
+  <ModulePrefs title="Callback tests"
+     title_url=""
+     description="A gadget to test retrevial of information from GC"
+     height="250" 
+     screenshot=""
+     thumbnail=""
+     scrolling="true"
+     author="Gerald Guo"
+     author_affiliation="CGL, IU"
+     author_email="zhguo@indiana.edu" 
+     author_location="Innovation Center, IU"
+	 category="tools"
+     author_link=""
+     author_photo=""
+     author_aboutme=""
+     author_quote="" >
+  <Require feature="rpc"/>
+  <Require feature="dynamic-height"/>
+  <Require feature="tabs"/>
+  </ModulePrefs>
+
+  <Content type="html" view="home, canvas">
+     <![CDATA[
+    <style>
+    .fieldName {
+      width: 100px;
+    }
+    </style>
+	<script type="text/javascript">
+      function setMsg(msg) {
+        var ele = document.getElementById("resultDiv");
+        ele.innerHTML = msg;
+      }
+
+      function getUserId() {
+        gadgets.rpc.call("..", "getUserID", function(msg) {setMsg(msg);});
+      }
+      function getUserProfileCB() {
+        gadgets.rpc.call("..", "getUserProfileCBURL", function(msg) {setMsg(msg);});
+      }
+      function getUserVerifyCB() {
+        gadgets.rpc.call("..", "getUserVerifyCBURL", function(msg) {setMsg(msg);});
+      }
+    </script>
+
+    <div class="authsec">
+        <input type="button" onClick="getUserId();" value="get user id"><br>
+        <input type="button" onClick="getUserProfileCB();" value="get user profile callback"><br>
+        <input type="button" onClick="getUserVerifyCB();" value="get user verification callback"><br>
+      <div> <span style="font-weight:bold;">Status</span>:
+        <div id="resultDiv" style="display:inline;"></div>
+      </div>
+    </div>
+
+    ]]>
+  </Content> 
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/canvas-nav.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/canvas-nav.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/canvas-nav.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/canvas-nav.xml Fri Apr  1 00:29:22 2011
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Module>
+<ModulePrefs title="" author="" author_email="" height="250" description="">
+  <Require feature="dynamic-height" />
+  <Require feature="views" />
+</ModulePrefs>
+
+
+   <Content type="html" view="home">
+   <![CDATA[
+      Normal view!
+      <script type="text/javascript">
+      function goToCanvas(dest){
+      var supported_views=gadgets.views.getSupportedViews();
+      gadgets.views.requestNavigateTo(supported_views[dest]);
+      };
+        </script>
+     <a href="#" onclick="javascript:goToCanvas('canvas');return false;">Go to Canvas</a>
+
+     ]]>
+   </Content>  
+
+   <Content type="html" view="canvas">
+   <![CDATA[
+     Canvas view.
+      <script type="text/javascript">
+      function goToCanvas(dest){
+      var supported_views=gadgets.views.getSupportedViews();
+      gadgets.views.requestNavigateTo(supported_views[dest]);
+      };
+        </script>
+     <a href="#" onclick="javascript:goToCanvas('profile');return false">Go to Profile view</a>
+     ]]>
+   </Content>  
+
+ </Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/canvas.html
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/canvas.html?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/canvas.html (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/canvas.html Fri Apr  1 00:29:22 2011
@@ -0,0 +1,113 @@
+<html>
+<head>
+<style type="text/css">
+ /*
+  These styles are customizable.
+  Provide  .canvas-gadget (the div that holds the canvas mode gadget)
+  at least 500px width so that  the gadget has sufficient screen real estate
+*/
+body {
+  margin:0;
+  font-family:arial, sans-serif;
+  text-align:center;
+}
+.container {
+  width:652px;
+  margin:0 auto;
+  text-align:left;
+}
+.fc-sign-in-header {
+  text-align:left;
+  font-size:13px;
+  padding:3px 10px;
+  border-bottom:1px solid #000000;
+}
+.signin {
+  text-align:left;
+  float:right;
+  font-size:13px;
+  height:32px;
+}
+.go-back {
+  text-align:left;
+  margin:5px auto 15px auto;
+}
+.go-back a, .go-back a:visited {
+  font-weight:bold;
+}
+.canvas-gadget {
+  text-align:left;
+  width:650px; /* ALLOW AT LEAST 500px WIDTH*/
+  margin:10px auto 10px auto;
+  border:1px solid #cccccc;
+}
+.site-header {
+  margin-top:10px;
+}
+.section-title {
+  font-size:2em;
+}
+.clear {
+  clear:both;
+  font-size:1px;
+  height:1px;
+  line-height:0;
+  margin:0;
+  padding:0;
+}
+</style>
+<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+</head>
+<body>
+<div class="container">
+  <div class="fc-sign-in-header">
+    <!--REQUIRED SO VISITORS CAN SIGN IN-->
+    <div class="signin" id="gadget-signin"></div>
+    <script type="text/javascript">
+    var skin = {};
+    skin['BORDER_COLOR'] = '#cccccc';
+    skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+    skin['ENDCAP_TEXT_COLOR'] = '#333333';
+    skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+    skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+    skin['CONTENT_BG_COLOR'] = '#ffffff';
+    skin['CONTENT_LINK_COLOR'] = '#0000cc';
+    skin['CONTENT_TEXT_COLOR'] = '#333333';
+    skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+    skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+    skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+    skin['ALIGNMENT'] = 'right';
+    google.friendconnect.container.renderCanvasSignInGadget({'id': 'gadget-signin'}, skin);
+    </script>
+    <!--END REQUIRED-->
+    <div class="clear"></div>
+  </div>
+
+  <div class="site-header"><span class="section-title">Site Name</span></div>
+  <div class="go-back">
+    <!--REQUIRED SO VISITORS CAN RETURN TO REFERRING PAGE-->
+    <a href="javascript:google.friendconnect.container.goBackToSite();">
+    &lsaquo;&lsaquo; Return home</a>
+    <!--END REQUIRED-->
+  </div>
+  <!-- REQUIRED - THIS IS WHERE THE GADGET IS PRESENTED. ALLOW AT LEAST 500px WIDTH -->
+  <div id="gadget-canvas" class="canvas-gadget"></div>
+  <script type="text/javascript">
+  var skin = {};
+  skin['BORDER_COLOR'] = '#cccccc';
+  skin['ENDCAP_BG_COLOR'] = '#e0ecff';
+  skin['ENDCAP_TEXT_COLOR'] = '#333333';
+  skin['ENDCAP_LINK_COLOR'] = '#0000cc';
+  skin['ALTERNATE_BG_COLOR'] = '#ffffff';
+  skin['CONTENT_BG_COLOR'] = '#ffffff';
+  skin['CONTENT_LINK_COLOR'] = '#0000cc';
+  skin['CONTENT_TEXT_COLOR'] = '#333333';
+  skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
+  skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
+  skin['CONTENT_HEADLINE_COLOR'] = '#333333';
+  google.friendconnect.container.renderUrlCanvasGadget({'id': 'gadget-canvas'}, skin);
+  </script>
+  <!--END REQUIRED-->
+</div>
+</body>
+</html>
\ No newline at end of file