diff options
| author | anbr <vdr07@deltab.de> | 2011-10-08 07:43:51 +0200 |
|---|---|---|
| committer | anbr <vdr07@deltab.de> | 2011-10-08 07:43:51 +0200 |
| commit | 85d4bfa04ce28b5ec3eb0054306c43bc59c55128 (patch) | |
| tree | d7878021068d70e2a4ab3044beb5f770a57fc980 /html/javascript/XHConn.js | |
| parent | a71b70567ed73853367d972a95d2a346b2f93989 (diff) | |
| download | xxv-85d4bfa04ce28b5ec3eb0054306c43bc59c55128.tar.gz xxv-85d4bfa04ce28b5ec3eb0054306c43bc59c55128.tar.bz2 | |
Merge skins into common directory
Diffstat (limited to 'html/javascript/XHConn.js')
| -rw-r--r-- | html/javascript/XHConn.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/html/javascript/XHConn.js b/html/javascript/XHConn.js deleted file mode 100644 index 537b555..0000000 --- a/html/javascript/XHConn.js +++ /dev/null @@ -1,41 +0,0 @@ -/** XHRequest based on ** - ** XHConn - Simple XMLHTTP Interface - bfults@gmail.com - 2005-04-08 ** - ** Code licensed under Creative Commons Attribution-ShareAlike License ** - ** http://creativecommons.org/licenses/by-sa/2.0/ **/ - -function XHRequest() -{ - var xmlhttp, bComplete = false; - try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } - catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } - catch (e) { try { xmlhttp = new XMLHttpRequest(); } - catch (e) { xmlhttp = false; }}} - if (!xmlhttp) - return null; - - this.connect = function(sRequest, fnDone, sData) - { - if (!xmlhttp) return false; - bComplete = false; - - try { - xmlhttp.open("GET", sRequest, true); - xmlhttp.onreadystatechange = function() - { - if (xmlhttp.readyState == 4 && !bComplete) - { - bComplete = true; - fnDone(xmlhttp, sData); - } - }; - xmlhttp.send(null); - } catch(z) { alert(z); return false; } - return true; - }; - return this; -} - -var ajaxconn = new XHRequest(); - -if (!ajaxconn) - alert("XMLHTTP not available. Try a newer/better browser."); |
