summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/store/src/main/resources/uiservices/store.html
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-12-10 06:15:11 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-12-10 06:15:11 +0000
commit38d6bbbd3b64aea420c42219d690f25af9d18660 (patch)
tree14071066e87d7b94ca29eba82c4d5614e2645038 /sca-java-2.x/trunk/samples/store/src/main/resources/uiservices/store.html
parent3327f8ef00c3daadb9bee579e94dab08f392e304 (diff)
Updates to store js to follow dojo style of identifying callBacks
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@889107 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/samples/store/src/main/resources/uiservices/store.html15
1 files changed, 8 insertions, 7 deletions
diff --git a/sca-java-2.x/trunk/samples/store/src/main/resources/uiservices/store.html b/sca-java-2.x/trunk/samples/store/src/main/resources/uiservices/store.html
index ba004e02ac..651aca74f0 100644
--- a/sca-java-2.x/trunk/samples/store/src/main/resources/uiservices/store.html
+++ b/sca-java-2.x/trunk/samples/store/src/main/resources/uiservices/store.html
@@ -20,6 +20,7 @@
<head>
<title>Store</title>
+<script type="text/javascript" src="/dojo/dojo.js"></script>
<script type="text/javascript" src="store.js"></script>
<script language="JavaScript">
@@ -65,7 +66,7 @@
if (entries.length != 0) {
try {
- shoppingTotal.getTotal(shoppingTotal_getTotalResponse);
+ shoppingTotal.getTotal().addCallback(shoppingTotal_getTotalResponse);
}
catch(e){
alert(e);
@@ -83,7 +84,7 @@
}
function shoppingCart_postResponse(entry) {
- shoppingCart.get("", shoppingCart_getResponse);
+ shoppingCart.get("").addCallback(shoppingCart_getResponse);
}
function addToCart() {
@@ -96,7 +97,7 @@
'<Item xmlns="http://services/">' +
'<name xmlns="">' + catalogItems[i].name + '</name>' + '<price xmlns="">' + catalogItems[i].price + '</price>' +
'</Item>' + '</content></entry>';
- shoppingCart.post(entry, shoppingCart_postResponse);
+ shoppingCart.post(entry).addCallback(shoppingCart_postResponse);
items[i].checked = false;
}
}
@@ -112,10 +113,10 @@
'<br>'+
'<input type="submit" value="Continue Shopping">'+
'</form>';
- shoppingCart.del("", null);
+ shoppingCart.del("");
}
function deleteCart() {
- shoppingCart.del("", null);
+ shoppingCart.del("");
document.getElementById('shoppingCart').innerHTML = "";
document.getElementById('total').innerHTML = "";
}
@@ -123,8 +124,8 @@
function init() {
try {
- catalog.get(catalog_getResponse);
- shoppingCart.get("", shoppingCart_getResponse);
+ catalog.get().addCallback(catalog_getResponse);
+ shoppingCart.get("").addCallback(shoppingCart_getResponse);
}
catch(e){
alert(e);