html5/spec-author-view dfn.js,1.5,1.6

Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv5641

Modified Files:
	dfn.js 
Log Message:
updated

Index: dfn.js
===================================================================
RCS file: /sources/public/html5/spec-author-view/dfn.js,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- dfn.js	19 Aug 2010 08:29:09 -0000	1.5
+++ dfn.js	19 Aug 2010 08:43:45 -0000	1.6
@@ -1,11 +1,15 @@
 // No copyright is asserted on this file.
-var networkStatus = document.createElement("i");
+
 function initDfn(node, panelDiv) {
   var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
   request.onreadystatechange = function () {
+    var networkStatus = document.createElement("i");
     panelDiv.appendChild(networkStatus);
-    networkStatus.appendChild(document.createTextNode(' '));
-    network('loading... ' + request.readyState + '/4');
+    var dots; 
+    for (var i = 0; i < parseInt(request.readyState); i++) {
+      dots += ".";
+    }
+    networkStatus.textContent = 'loading...'+dots+' ';
     if (request.readyState == 4) {
       panelDiv.innerHTML = request.responseText;
     }
@@ -18,10 +22,6 @@
     return -1;
   }
 }
-function network(s) {
-  while (networkStatus.firstChild) networkStatus.removeChild(networkStatus.firstChild);
-  networkStatus.appendChild(document.createTextNode(s));
-}
 var dfnPanel;
 document.addEventListener('click', dfnShow, false);
 document.addEventListener("keyup", function(e) {

Received on Thursday, 19 August 2010 08:43:49 UTC