From 85d4bfa04ce28b5ec3eb0054306c43bc59c55128 Mon Sep 17 00:00:00 2001 From: anbr Date: Sat, 8 Oct 2011 07:43:51 +0200 Subject: Merge skins into common directory --- html/javascript/XHConn.js | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 html/javascript/XHConn.js (limited to 'html/javascript/XHConn.js') 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."); -- cgit v1.2.3