Update of /var/cvs/contributions/didactor2/src/core/templates/core/js
In directory james.mmbase.org:/tmp/cvs-serv2047
Modified Files:
utils.js
Log Message:
since we have disposal over jquery, we can just as wel use its ajax functions
in stead of the odd Image hack
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.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- utils.js 20 Mar 2008 17:04:15 -0000 1.9
+++ utils.js 28 Aug 2008 12:47:38 -0000 1.10
@@ -34,14 +34,8 @@
}
-function getUrl(url){
- var i = new Image();
- i.src = url;
- i = null;
-}
-
function keepalive(url){
- getUrl(url)
+ $.get(url);
setTimeout("keepalive('" + url + "');", 1000 * 60 * 2); // keep alive
every 2 minutes
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs