replace ajax downloadurl disallowed on IE (not same domain?) by PHP
[maps-routes-comparison] / googlemaps.js
index 66557023caee54cb0071f8d5a78046f5508b615f..11efa28eceea87fb85fda779ca76e41d4368f1f9 100644 (file)
@@ -4,20 +4,6 @@ function debug(txt) {
     document.getElementById("debugbox").innerHTML += new Date() + txt + "<br/>";
 }
 
-function downloadUrl(url, callback) {
-    var request = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest;
-    request.onreadystatechange = function() {
-        if (request.readyState == 4) {
-            request.onreadystatechange = function() {};
-            if (callback) {
-                callback(request.responseText, request.status);
-            }
-        }
-    };
-    request.open('GET', url, true);
-    request.send(null);
-}
-
 function getIcon(filename) {
     return new google.maps.MarkerImage("icons/" + filename + ".png",
                                        new google.maps.Size(32, 32),