Author: jsdelfino
Date: Tue Oct 16 18:33:23 2007
New Revision: 585317

URL: http://svn.apache.org/viewvc?rev=585317&view=rev
Log:
Fixed store HTML and Javascript to make it work on IE 7 and Safari.

Modified:
    
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/binding-atom.js
    
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html

Modified: 
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/binding-atom.js
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/binding-atom.js?rev=585317&r1=585316&r2=585317&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/binding-atom.js
 (original)
+++ 
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/binding-atom.js
 Tue Oct 16 18:33:23 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/samples/store/src/main/resources/ufservices/store.html
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html?rev=585317&r1=585316&r2=585317&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html
 (original)
+++ 
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html
 Tue Oct 16 18:33:23 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to