/[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 61 by andrew.betts, Thu Apr 17 20:03:54 2008 UTC revision 64 by andrew.betts, Mon Jan 19 11:19:41 2009 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 65  function extractEvents(responsestr) { Line 69  function extractEvents(responsestr) {
69          }          }
70  }  }
71    
72    window.onload = function() {
73            if (parent.Meteor.status == 4) startstream();
74  startstream();  }
75  </script>  </script>
76  </body>  </body>
77  </html>  </html>

Legend:
Removed from v.61  
changed lines
  Added in v.64

  ViewVC Help
Powered by ViewVC 1.1.26