/[meteor]/googlecode.com/svn/trunk/public_html/stream.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /googlecode.com/svn/trunk/public_html/stream.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 55 by andrew.betts, Thu Feb 28 00:21:39 2008 UTC revision 62 by andrew.betts, Thu Nov 27 00:33:21 2008 UTC
# Line 14  function abort() { Line 14  function abort() {
14  }  }
15    
16  function newXmlHttp() {  function newXmlHttp() {
17      try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}          var xhr = null;
18      try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}          try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {
19      try { return new XMLHttpRequest(); } catch(e) {}                  try { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {
20      return null;                          try { xhr = new XMLHttpRequest(); } catch(e) { return false }
21                    }
22            }
23            return xhr;
24  }  }
25    
26  function startstream() {  function startstream() {
# Line 39  function startstream() { Line 42  function startstream() {
42                  }                  }
43          }          }
44          streamreq.send(null);          streamreq.send(null);
45            parent.Meteor.lastrequest = parent.Meteor.time();
46  }  }
47    
48  function extractEvents(responsestr) {  function extractEvents(responsestr) {
# Line 50  function extractEvents(responsestr) { Line 54  function extractEvents(responsestr) {
54                          y = newdata.indexOf("</"+"script>", x);                          y = newdata.indexOf("</"+"script>", x);
55                          if (y != -1) {                          if (y != -1) {
56                                  eval(newdata.substring((x+8),y));                                  eval(newdata.substring((x+8),y));
57                                    if (typeof newdata == 'undefined') break;  // If message was eof() then we're now in a freed script
58                                  newdata = newdata.substring(y+9);                                  newdata = newdata.substring(y+9);
59                          } else {                          } else {
60    
# Line 65  function extractEvents(responsestr) { Line 70  function extractEvents(responsestr) {
70  }  }
71    
72    
   
73  startstream();  startstream();
74  </script>  </script>
75  </body>  </body>

Legend:
Removed from v.55  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.26