X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fcomet.js;h=8c427c978bf44f96cfa202723b8982cbe9e0b6e3;hp=e06f518dfe4f5915288ad2715669299eca45cae0;hb=351623b2a00432ae5b690476c68b8fb05cc8dd03;hpb=d0a68333e392d0aac61b612a07dd9cc80c4eeb93 diff --git a/js/comet.js b/js/comet.js index e06f518..8c427c9 100644 --- a/js/comet.js +++ b/js/comet.js @@ -98,7 +98,7 @@ Comet.prototype.waitEvent = function(funSend, funsReceive) { timeout: 180000, // timeout de 3min. Gros HACK pas beau. FIXME problème décrit ici : http://groups.google.com/group/jquery-en/browse_thread/thread/8724e64af3333a76 data: { action : JSON.stringify(dataToSend) }, success: - function(data) { + function(data) { funsReceive[data.reply](data); // rappel de la fonction dans 100 ms @@ -106,7 +106,7 @@ Comet.prototype.waitEvent = function(funSend, funsReceive) { }, error: function(XMLHttpRequest, textStatus, errorThrown) { - ;; console.log("Connexion perdue dans PageEvent.prototype.waitEvent()"); + ;; console.log("Connexion perdue dans Comet.prototype.waitEvent() : \n" + textStatus); setTimeout(function(){ thisComet.waitEvent2(funSend, funsReceive); }, 1000); } });