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 2008/03/25 01:51:53 UTC

svn commit: r640656 - in /incubator/tuscany/java/sca/tutorial: assets/uiservices/store.html store-eu/uiservices/store-eu.html

Author: jsdelfino
Date: Mon Mar 24 17:51:51 2008
New Revision: 640656

URL: http://svn.apache.org/viewvc?rev=640656&view=rev
Log:
Fix for TUSCANY 2131. Invoke the Javascript code initializing the HTML DOM from the body.onload event, as with IE the DOM is not available until that event is triggered.

Modified:
    incubator/tuscany/java/sca/tutorial/assets/uiservices/store.html
    incubator/tuscany/java/sca/tutorial/store-eu/uiservices/store-eu.html

Modified: incubator/tuscany/java/sca/tutorial/assets/uiservices/store.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/assets/uiservices/store.html?rev=640656&r1=640655&r2=640656&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/assets/uiservices/store.html (original)
+++ incubator/tuscany/java/sca/tutorial/assets/uiservices/store.html Mon Mar 24 17:51:51 2008
@@ -105,13 +105,16 @@
 		document.getElementById('total').innerHTML = "";	
 	}	
 
-	catalog.get(catalog_getResponse);
-	shoppingCart.get("", shoppingCart_getResponse);
+	function init() {
+		catalog.get(catalog_getResponse);
+		shoppingCart.get("", shoppingCart_getResponse);
+	}
+	
 </script>
 
 </head>
 
-<body>
+<body onload="init()">
 <h1>Store</h1>
   <div id="store">
    	<h2>Catalog</h2>

Modified: incubator/tuscany/java/sca/tutorial/store-eu/uiservices/store-eu.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/store-eu/uiservices/store-eu.html?rev=640656&r1=640655&r2=640656&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/store-eu/uiservices/store-eu.html (original)
+++ incubator/tuscany/java/sca/tutorial/store-eu/uiservices/store-eu.html Mon Mar 24 17:51:51 2008
@@ -105,13 +105,16 @@
 		document.getElementById('total').innerHTML = "";	
 	}	
 
-	catalog.get(catalog_getResponse);
-	shoppingCart.get("", shoppingCart_getResponse);
+	function init() {
+		catalog.get(catalog_getResponse);
+		shoppingCart.get("", shoppingCart_getResponse);
+	}
+	
 </script>
 
 </head>
 
-<body>
+<body onload="init()">
 <h1>Store</h1>
   <p>Fruits and Vegetables - Fruits et Legumes - Obst und Gemuese   
   <div id="store">



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org