You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2007/10/24 20:13:31 UTC

svn commit: r587947 - /incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html

Author: lresende
Date: Wed Oct 24 11:13:30 2007
New Revision: 587947

URL: http://svn.apache.org/viewvc?rev=587947&view=rev
Log:
Updating json code to process the returned catalog

Modified:
    incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html

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=587947&r1=587946&r2=587947&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 Wed Oct 24 11:13:30 2007
@@ -32,9 +32,11 @@
 
 	function catalog_getResponse(items) {
 		var catalog = "";
-		for (var i=0; i<items.length; i++)
+		for (var i=0; i<items.String_collection.String.length; i++) {
+			var item = items.String_collection.String[i]["$"];
 			catalog += '<input name="items" type="checkbox" value="' + 
-						items[i] + '">' + items[i]+ ' <br>';
+						item + '">' + item + ' <br>';
+		}
 		document.getElementById('catalog').innerHTML=catalog;
 	}
 	



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