diff options
-rw-r--r-- | sca-java-2.x/contrib/samples/comet-webapp/src/main/webapp/index.html | 10 |
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); } }); |