You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by fm...@apache.org on 2010/08/15 13:28:25 UTC

svn commit: r985655 - /tuscany/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html

Author: fmoga
Date: Sun Aug 15 11:28:25 2010
New Revision: 985655

URL: http://svn.apache.org/viewvc?rev=985655&view=rev
Log:
Updated sample to use the 'SCA' namespace for javascript toolkit.

Modified:
    tuscany/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html

Modified: tuscany/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html?rev=985655&r1=985654&r2=985655&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html (original)
+++ tuscany/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html Sun Aug 15 11:28:25 2010
@@ -56,7 +56,7 @@
 			
 			document.getElementById('connect').onclick = function(event) {
                 /* transport can be : long-polling, streaming or websocket */
-			 	tuscanyComet.connect(document.getElementById('transport').value);
+			 	SCA.TuscanyComet.connect(document.getElementById('transport').value);
                 document.getElementById('connect').disabled = true;
                 document.getElementById('transport').disabled = true;
                 document.getElementById('locationButton').disabled = false;
@@ -64,19 +64,19 @@
 			
 
 			document.getElementById('tempCButton').onclick = function(event) {
-				cometComponentContext.TemperatureService.getTemperature(location, 1, updateTempC);
+				SCA.CometComponentContext.TemperatureService.getTemperature(location, 1, updateTempC);
 			}
 
 			document.getElementById('tempFButton').onclick = function(event) {
-				cometComponentContext.TemperatureService.getTemperature(location, 2, updateTempF);
+				SCA.CometComponentContext.TemperatureService.getTemperature(location, 2, updateTempF);
 			}
 
 			document.getElementById('humButton').onclick = function(event) {
-				cometComponentContext.HumidityService.getHumidity(location, updateHum);
+				SCA.CometComponentContext.HumidityService.getHumidity(location, updateHum);
 			}
 
 			document.getElementById('precipButton').onclick = function(event) {
-				cometComponentContext.PrecipitationService.getPrecipitation(location, updatePrecip);
+				SCA.CometComponentContext.PrecipitationService.getPrecipitation(location, updatePrecip);
 			}
 		});