Changeset 302
- Timestamp:
- 06/23/08 04:30:38 (2 months ago)
- Location:
- branches/0.5/daemon/orbited/static
- Files:
-
- 6 modified
-
BinaryTCPConnection.js (modified) (1 diff)
-
OrbitedLegacyWrapper.js (modified) (2 diffs)
-
TCPConnection.js (modified) (1 diff)
-
WebSocket.js (modified) (1 diff)
-
XSubdomainRequest.js (modified) (1 diff)
-
orbited.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.5/daemon/orbited/static/BinaryTCPConnection.js
r287 r302 553 553 throw new Error("Invalid bridge domain") 554 554 if (!Boolean(bridgePath)) 555 bridgePath = "/ _/static/XSubdomainBridge.html"555 bridgePath = "/static/XSubdomainBridge.html" 556 556 if (!Boolean(markedHeaders)) 557 557 markedHeaders = [ -
branches/0.5/daemon/orbited/static/OrbitedLegacyWrapper.js
r292 r302 1 1 Orbited = { 2 connect: function (event_cb, token) { 2 connect: function (event_cb /* args 1-3 are token parts */) { 3 var tokens = Array.prototype.slice.call(arguments, 1) 4 var token = tokens.join(', ') 5 console.log(token) 6 3 7 var conn = new BaseTCPConnection() 4 8 var connUrl = new URL(location.href) … … 14 18 } 15 19 conn.connect(connUrl.render()) 16 } 20 }, 21 22 create_xhr: function () { 23 try { return new ActiveXObject('MSXML3.XMLHTTP'); } catch(e) {} 24 try { return new ActiveXObject('MSXML2.XMLHTTP.3.0'); } catch(e) {} 25 try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {} 26 try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {} 27 try { return new XMLHttpRequest(); } catch(e) {} 28 throw new Error('Could not find XMLHttpRequest or an alternative.'); 29 } 30 31 17 32 } -
branches/0.5/daemon/orbited/static/TCPConnection.js
r287 r302 553 553 throw new Error("Invalid bridge domain") 554 554 if (!Boolean(bridgePath)) 555 bridgePath = "/ _/static/XSubdomainBridge.html"555 bridgePath = "/static/XSubdomainBridge.html" 556 556 if (!Boolean(markedHeaders)) 557 557 markedHeaders = [ -
branches/0.5/daemon/orbited/static/WebSocket.js
r287 r302 553 553 throw new Error("Invalid bridge domain") 554 554 if (!Boolean(bridgePath)) 555 bridgePath = "/ _/static/XSubdomainBridge.html"555 bridgePath = "/static/XSubdomainBridge.html" 556 556 if (!Boolean(markedHeaders)) 557 557 markedHeaders = [ -
branches/0.5/daemon/orbited/static/XSubdomainRequest.js
r212 r302 4 4 throw new Error("Invalid bridge domain") 5 5 if (!Boolean(bridgePath)) 6 bridgePath = "/ _/static/XSubdomainBridge.html"6 bridgePath = "/static/XSubdomainBridge.html" 7 7 if (!Boolean(markedHeaders)) 8 8 markedHeaders = [ -
branches/0.5/daemon/orbited/static/orbited.js
r292 r302 552 552 throw new Error("Invalid bridge domain") 553 553 if (!Boolean(bridgePath)) 554 bridgePath = "/ _/static/XSubdomainBridge.html"554 bridgePath = "/static/XSubdomainBridge.html" 555 555 if (!Boolean(markedHeaders)) 556 556 markedHeaders = [ … … 693 693 // start @include(OrbitedLegacyWrapper.js) 694 694 Orbited = { 695 connect: function (event_cb, token) { 695 connect: function (event_cb /* args 1-3 are token parts */) { 696 var tokens = Array.prototype.slice.call(arguments, 1) 697 var token = tokens.join(', ') 698 console.log(token) 699 696 700 var conn = new BaseTCPConnection() 697 701 var connUrl = new URL(location.href) … … 707 711 } 708 712 conn.connect(connUrl.render()) 709 } 713 }, 714 715 create_xhr: function () { 716 try { return new ActiveXObject('MSXML3.XMLHTTP'); } catch(e) {} 717 try { return new ActiveXObject('MSXML2.XMLHTTP.3.0'); } catch(e) {} 718 try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {} 719 try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {} 720 try { return new XMLHttpRequest(); } catch(e) {} 721 throw new Error('Could not find XMLHttpRequest or an alternative.'); 722 } 723 724 710 725 } 711 726