I tried to use jquery to get an asp-generated xml file as per read xml by jquery , but I get status = parsererror err = TypeError: data is null. Entering the xml file into the browser generates a perfectly good xml file. I hope I don't have to do a wget...
xmlhttp = "http://10.1.10.154:1014/dtsearch_2.asp?cmd=pdfhits&DocId=44&Index=C%3a%5cstream%5cSupport%5cIDX%5fESTATE&HitCount=4&hits=185+1ac+1d5+1ff+&hc=323&req=knife"
$.ajax({
url: xmlhttp,
method: "POST",
dataType: "xml",
success: function(data) {
var xdoc = $(data); // Note that jQuery has already done the parsing for us
alert("Getting tutorials");
var tutorials = xdoc.find("loc");
alert("Found: " + tutorials.length);
tutorials.each(function() {
alert("Tutoral author: " + $(this).attr("pg"));
});
},
error: function(jxhr, status, err) {
alert("Ajax error: status = " + status + ", err = " + err);
}
});
I use a local IP address and port 1014, but I don't see why any of that would matter...
Thanks, Nick