mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
moved thesaurus js files, moved prod dependencies, removed unused pixastic dependency
This commit is contained in:
26
resources/www/thesaurus/js/xmlhttp.js
Normal file
26
resources/www/thesaurus/js/xmlhttp.js
Normal file
@@ -0,0 +1,26 @@
|
||||
function loadXMLDoc(url, post_parms, asxml) {
|
||||
if (typeof(asxml) == "undefined")
|
||||
asxml = false;
|
||||
out = null;
|
||||
xmlhttp = null;
|
||||
// code for Mozilla, etc.
|
||||
if (window.XMLHttpRequest)
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
else if (window.ActiveXObject)
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
|
||||
if (xmlhttp) {
|
||||
// xmlhttp.onreadystatechange=state_Change
|
||||
if (post_parms) {
|
||||
xmlhttp.open("POST", url, false);
|
||||
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
xmlhttp.send(post_parms);
|
||||
}
|
||||
else {
|
||||
xmlhttp.open("GET", url, false);
|
||||
xmlhttp.send(null);
|
||||
}
|
||||
out = asxml ? xmlhttp.responseXML : xmlhttp.responseText;
|
||||
}
|
||||
return(out);
|
||||
}
|
||||
Reference in New Issue
Block a user