mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00

to this version if you don't care about losing a lot of functionality while I am still finishing it up. Also the only working localplay method is currently MPD. UPDATE AT YOUR OWN RISK!
43 lines
1 KiB
JavaScript
Executable file
43 lines
1 KiB
JavaScript
Executable file
//var xmlDoc = null;
|
|
var http_request = false;
|
|
var IE = true;
|
|
|
|
function makeRequest(url,getTerms) {
|
|
if (window.ActiveXObject) { // IE
|
|
try {
|
|
http_request = new ActiveXObject("Msxml2.XMLHTTP");
|
|
}
|
|
catch (e) {
|
|
try {
|
|
http_request = new ActiveXObject("Microsoft.XMLHTTP");
|
|
}
|
|
catch (e) {}
|
|
}
|
|
}
|
|
else { // Mozilla
|
|
IE = false;
|
|
http_request = new XMLHttpRequest();
|
|
}
|
|
if (!http_request) {
|
|
return false;
|
|
}
|
|
http_request.onreadystatechange = function() {};
|
|
http_request.open('GET', url+"?"+getTerms, false);
|
|
http_request.send(null);
|
|
}
|
|
|
|
function getContents(http_request) {
|
|
if (http_request.readyState == 4) {
|
|
if (http_request.status == 200) {
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
function ajaxPut(url,getTerms,uid) {
|
|
makeRequest(url,getTerms);
|
|
|
|
data = http_request.responseText;
|
|
document.getElementById(uid).innerHTML = data;
|
|
}
|
|
|