I am trying to replace the current transport system I have with the QxRequest system but getting some odd results. I am getting the proper text back (it is a bunch of _javascript_ code), I know this because I can show it in an alert, but it will not eval(). This same text evals just fine when returned via my other XMLHttpRequest system. Is there something I am missing when dealing with _javascript_ through a QxRequest? Here is the code I am running:
this.refresh = function()
{
//s = loadDoc('getDispatchTabBody.htt?target=' + toolID); // this method works fine if I use it
var r = new QxRequest('getDispatchTabBody.htt?target=' + toolID, "GET", "text/plain");
with (r)
{
//setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); // tried with and without the header, no difference
setAsynchronous(false); // tried with and without this
addEventListener("completed", function(e)
{
var s = e.getData().getContent();
s = s.toString(); // tried it straight and with toString(), no difference
alert(s); // this is the correct returned text, looks fine
eval(s); // there is an alert in the returned _javascript_ that never executes
alert('2'); // this never gets executed
});
}
r.send();
//alert(s); // this was used when testing LoadDoc()
//eval(s); // same as above.
}
Thanks,
Jim
- [qooxdoo-devel] QxResponse issue, will not eval() Jim Hunter
- Re: [qooxdoo-devel] QxResponse issue, will not eval(... Sebastian Werner
- Re: [qooxdoo-devel] QxResponse issue, will not e... Jim Hunter
- Re: [qooxdoo-devel] QxResponse issue, will n... Jim Hunter
- Re: [qooxdoo-devel] QxResponse issue, wi... Sebastian Werner
- Re: [qooxdoo-devel] QxResponse issu... Jim Hunter
- Re: [qooxdoo-devel] QxResponse ... Til Schneider
- Re: [qooxdoo-devel] QxRespo... Jim Hunter
- Re: [qooxdoo-devel] QxRespo... Sebastian Werner