From bf56a64c032227cc4952a895d4e38579486d1d5c Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 21 Dec 2012 20:25:38 +0100 Subject: remove ajax js code This isn't needed with the new navigation menu anymore. --- ajax.js | 47 ----------------------------------------------- inc/html.inc.php | 1 - 2 files changed, 48 deletions(-) delete mode 100644 ajax.js diff --git a/ajax.js b/ajax.js deleted file mode 100644 index 7b7bec3..0000000 --- a/ajax.js +++ /dev/null @@ -1,47 +0,0 @@ -function getP(host, plugin) { - getData(host, plugin, 'load'); -} - -function rmP(host, plugin) { - getData(host, plugin, 'del'); -} - -var xmlHttp - -function getData(obj, id, action) { - xmlHttp=GetXmlHttpObject(); - if (xmlHttp==null) { - alert ("Your browser does not support AJAX!"); - return; - } - - var url="plugin.php"; - url=url+"?h="+obj+"&p="+id+"&a="+action; - xmlHttp.onreadystatechange=function(){setData(id)} - xmlHttp.open("GET",url,true); - xmlHttp.send(null); -} - -function setData(obj) { - if (xmlHttp.readyState==4) { - div = document.getElementById(obj); - - div.innerHTML=xmlHttp.responseText; - } -} - -function GetXmlHttpObject() { - var xmlHttp=null; - try { - // Firefox, Opera 8.0+, Safari - xmlHttp=new XMLHttpRequest(); - } catch (e) { - // Internet Explorer - try { - xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); - } catch (e) { - xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); - } - } - return xmlHttp; -} diff --git a/inc/html.inc.php b/inc/html.inc.php index ac37ca2..20a10ed 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -19,7 +19,6 @@ function html_start() { CGP{$path} - -- cgit v1.1