You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/10/17 03:55:27 UTC
svn commit: r585322 - in /incubator/tuscany/java/sca/demos:
apachecon-training/ store/
store/src/main/resources/ufservices/binding-atom.js
store/src/main/resources/ufservices/store.html training/
Author: jsdelfino
Date: Tue Oct 16 18:55:26 2007
New Revision: 585322
URL: http://svn.apache.org/viewvc?rev=585322&view=rev
Log:
Renamed apachecon-training to training. Copy the simple getting started store into it.
Added:
incubator/tuscany/java/sca/demos/store/
- copied from r584438, incubator/tuscany/java/sca/samples/store/
incubator/tuscany/java/sca/demos/training/
- copied from r584438, incubator/tuscany/java/sca/demos/apachecon-training/
Removed:
incubator/tuscany/java/sca/demos/apachecon-training/
Modified:
incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/binding-atom.js
incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/store.html
Modified: incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/binding-atom.js
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/binding-atom.js?rev=585322&r1=584438&r2=585322&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/binding-atom.js (original)
+++ incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/binding-atom.js Tue Oct 16 18:55:26 2007
@@ -65,7 +65,7 @@
xhr.setRequestHeader("Content-Type", "application/atom+xml");
xhr.send(entry);
}
- this.delete = function (id, responseFunction) {
+ this.del = function (id, responseFunction) {
var xhr = this.createXMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
Modified: incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/store.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/store.html?rev=585322&r1=584438&r2=585322&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/store.html (original)
+++ incubator/tuscany/java/sca/demos/store/src/main/resources/ufservices/store.html Tue Oct 16 18:55:26 2007
@@ -44,9 +44,9 @@
var list = "";
for (var i=0; i<entries.length; i++) {
var item = entries[i].getElementsByTagName("content")[0].firstChild.nodeValue;
- list += item + ' <br>';
+ list += item + ' <br>';
}
- document.getElementById("shoppingCart").innerHTML = list;
+ document.getElementById("shoppingCart").innerHTML = list;
document.getElementById('total').innerHTML = feed.getElementsByTagName("subtitle")[0].firstChild.nodeValue;
}
}
@@ -77,15 +77,16 @@
'<br>'+
'<input type="submit" value="Continue Shopping">'+
'</form>';
- shoppingCart.delete("", null);
+ shoppingCart.del("", null);
}
function deleteCart() {
- shoppingCart.delete("", null);
+ shoppingCart.del("", null);
document.getElementById('shoppingCart').innerHTML = "";
document.getElementById('total').innerHTML = "";
}
catalog.get(catalog_getResponse);
+ shoppingCart.get("", shoppingCart_getResponse);
</script>
</head>
@@ -104,8 +105,8 @@
<h2>Your Shopping Cart</h2>
<form name="shoppingCartForm">
- <div id="shoppingCart"></div>
- <br>
+ <div id="shoppingCart"></div>
+ <br>
<div id="total"></div>
<br>
<input type="button" onClick="checkoutCart()" value="Checkout">
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org