- From: Dominique Hazael-Massieux via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 02 Sep 2010 07:56:51 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/camera
In directory hutz:/tmp/cvs-serv6335
Modified Files:
Overview-API.html
Log Message:
DOM coding best practice :)
Index: Overview-API.html
===================================================================
RCS file: /sources/public/2009/dap/camera/Overview-API.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Overview-API.html 2 Sep 2010 07:56:06 -0000 1.11
+++ Overview-API.html 2 Sep 2010 07:56:48 -0000 1.12
@@ -58,13 +58,14 @@
function success(data) {
var container = document.createElement("div");
- document.body.appendChild(container);
for (var i in data) {
var img = document.createElement("img");
img.src = data[i].url;
container.appendChild(img);
}
+ document.body.appendChild(container);
+
}
function error(err) {
Received on Thursday, 2 September 2010 07:56:52 UTC