Update of /var/cvs/contributions/didactor2/src/core/templates/core/js
In directory james.mmbase.org:/tmp/cvs-serv16409

Modified Files:
        utils.js 
Log Message:
moved some more js to here


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/templates/core/js


Index: utils.js
===================================================================
RCS file: /var/cvs/contributions/didactor2/src/core/templates/core/js/utils.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- utils.js    20 Mar 2008 12:25:56 -0000      1.8
+++ utils.js    20 Mar 2008 17:04:15 -0000      1.9
@@ -32,3 +32,16 @@
     return document.getElementById(loginId).value.length > 0 &&
        document.getElementById(passwordId).value.length > 0;
 }
+
+
+function getUrl(url){
+    var i = new Image();
+    i.src = url;
+    i = null;
+}
+
+function keepalive(url){
+    getUrl(url)
+    setTimeout("keepalive('" + url + "');", 1000  * 60 * 2); // keep alive 
every 2 minutes
+}
+
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to