I'd like to connect to a JSP and receive timeline data from that, but
I am having trouble getting anything back from the JSP. Here is my
code:
In the html file:
tl.loadJSON("
http://localhost:8080/nss-web/getganttresults.jsp",
function(json, url) { eventSourceALL.loadJSON(json, url); });
The problem I am seeing is that the response comes back with a normal
status, but responseText is empty. I have the debugger parked on
f(eval('(' + xmlhttp.responseText + ')'), url) as shown below.
responseText is always an empty string.
Timeline._Impl.prototype.loadJSON = function(url, f) {
var tl = this;
var fError = function(statusText, status, xmlhttp) {
alert("Failed to load json data from " + url + "\n" + statusText);
tl.hideLoadingMessage();
};
var fDone = function(xmlhttp) {
try {
f(eval('(' + xmlhttp.responseText + ')'), url);
} finally {
tl.hideLoadingMessage();
}
};
this.showLoadingMessage();
window.setTimeout(function() { SimileAjax.XmlHttp.get(url, fError,
fDone); }, 0);
};
Any ideas on what I can try next? I checked the 'Net' tab in firebug,
and it shows that the jsp got 125KB of data back in about 3 seconds,
which is exactly what I would expect. But the returned data is not in
the response.
Thanks in advance!
--Trudy