diff --git a/ajax.js b/js/ajax.js similarity index 98% rename from ajax.js rename to js/ajax.js index 9065c26..e3c16ee 100644 --- a/ajax.js +++ b/js/ajax.js @@ -3,4 +3,4 @@ function ajax(url,callback){ try{ajaxRequest = new XMLHttpRequest();} catch (e){try{ajaxRequest=new ActiveXObject('Msxml2.XMLHTTP');} catch (e) {try{ajaxRequest=new ActiveXObject('Microsoft.XMLHTTP');} catch (e){alert("Something broke!");return false;}}} if (callback){ajaxRequest.onreadystatechange=function(){if(ajaxRequest.readyState==4){callback(ajaxRequest.responseText);}}} ajaxRequest.open('GET',url+'&nocache='+(new Date().getTime()),true);ajaxRequest.send(null); -} \ No newline at end of file +}