hi,
in my continually research to find tools for pair programming, I find Saros ... in the next days I will test this tools.
On the website is a demo movie!
On the website is a demo movie!
var launchfilleIntervall;
var isBlocked = false;
function isServerLost() {
jQuery.ajax({
type: "POST",
url: "ServerLostServlet",
dataType:"xml",
data:"",
timeout: 250,
success:function(response){
if (isBlocked) {
$.unblockUI();
}
isBlocked = false; // do something
},
error:function (xhr, ajaxOptions, thrownError){
if (!isBlocked) {
$.blockUI();
}
isBlocked = true;
}
});
}
function stopAjax() {
if (launchfilleIntervall) {
window.clearInterval(launchfilleIntervall);
}
}
function startAjax() {
if (!launchfilleIntervall) {
launchfilleIntervall = window.setInterval('isServerLost()', 1500);
}
}I change the HTML source and add to the body tag:
onload="startAjax()"
onunload="stopAjax()"