summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/contrib/samples/comet-webapp/src
diff options
context:
space:
mode:
authorfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2010-08-15 11:28:25 +0000
committerfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2010-08-15 11:28:25 +0000
commite351502e55d7de56a2d14ad33923f796a73d118f (patch)
treec0f35c4dd5e2cdd43aacb7b42ff7cbc6535adbb9 /sca-java-2.x/contrib/samples/comet-webapp/src
parent7970ab99be53e9a2917a4046bab4c058453ab9a1 (diff)
Updated sample to use the 'SCA' namespace for javascript toolkit.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@985655 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/contrib/samples/comet-webapp/src')
-rw-r--r--sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html b/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html
index 94b3470e1a..d0330767de 100644
--- a/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html
+++ b/sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html
@@ -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);
}
});