rem: setTimeout("DWREngine._checkCometPoll()", 100); var frameDocument; if (DWREngine._pollFrame.contentDocument) { frameDocument = DWREngine._pollFrame.contentDocument.defaultView.document; } else if (DWREngine._pollFrame.contentWindow) { frameDocument = DWREngine._pollFrame.contentWindow.document } var bodyNodes = frameDocument.getElementsByTagName("body"); if (bodyNodes == null || bodyNodes.length == 0) return; if (bodyNodes[0] == null) return; var text = bodyNodes[0].innerHTML.toString();  if (text.indexOf("<PRE>") == 0) { text = text.substring(5, text.length - 7); } var size = text.length; if (DWREngine._pollCometSize != size) { var executeString = text.substring(DWREngine._pollCometSize); eval(executeString); DWREngine._pollCometSize = size; } 
add: setTimeout("DWREngine._checkCometPoll()", DWREngine._pollCometInterval); var text = DWREngine._getTextFromCometIFrame(); DWREngine._processCometResponse(text); 
context: DWREngine._checkCometPoll = function() {  if (DWREngine._pollComet) {    if (DWREngine._pollFrame) {      setTimeout("DWREngine._checkCometPoll()", 100);      var frameDocument;      if (DWREngine._pollFrame.contentDocument) {        frameDocument = DWREngine._pollFrame.contentDocument.defaultView.document;      }      else if (DWREngine._pollFrame.contentWindow) {        frameDocument = DWREngine._pollFrame.contentWindow.document      }      var bodyNodes = frameDocument.getElementsByTagName("body");      if (bodyNodes == null || bodyNodes.length == 0) return;      if (bodyNodes[0] == null) return;      var text = bodyNodes[0].innerHTML.toString();      // IE plays silly-pants and adds <PRE>...</PRE> for some unknown reason      if (text.indexOf("<PRE>") == 0) {        text = text.substring(5, text.length - 7);      }      var size = text.length;      if (DWREngine._pollCometSize != size) {        var executeString = text.substring(DWREngine._pollCometSize);        eval(executeString);        DWREngine._pollCometSize = size;      }    }    else if (DWREngine._pollReq) {      setTimeout("DWREngine._checkCometPoll()", 100);      var xhrtext = DWREngine._pollReq.responseText;    }  }}
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/fbe7e86c9bd6b849e8142920ba97e000e9c7ec62/engine.js/clean/java/org/directwebremoting/engine.js