Folks, I'm having a problem with Ajax remote access to a normal, fully
qualified URL on the same server:port the client is.  Here's my code:

       var req = new qx.io.remote.Request(pURL, "GET", "text/plain");
       //req.setMethod("GET");
       //req.setTimeout(10000);
       req.addEventListener("completed", function(e) {
                 alert("Got lyrics for " + pURL + " = " + 
e.getData.getContent());
                 document.forms[1].elements[0].value = e.getData.getContent();
        });

        /*
                req.addEventListener("timeout", function(e) {
                alert("Request for lyrics for " + pURL + " timed out!");
                document.forms[1].elements[0].value = e.getData.getContent();
        });
        */
        req.send();

I had the timeout event listener in there because that's what happens.  The
status messages in the separate qooxdoo status display window indicate a
timeout.  The URL exists and all should be fine with the request.  And the
request actually does work!  In fact, when I run it in Eclipse and run the
request/response through the TCP/IP Monitor I can see the response text
coming back correctly.  It's all there.  All is good.  Thing is, it just
doesn't get returned in the qooxdoo response object, apparently.  And the
timeout event fires after the default 5 seconds.  Even when I set the
request timeout to 10,000 millis it times out.  Am I missing something about
getting the data out of the response?

I'm using qooxdoo 0.73 on Windows XP, with Tomcat 6.something.  The correct
text is there in the HTTP response.  It seems it just doesn't make it into
the qooxdoo response object -- I don't think.  Any ideas about what could be
wrong?

Thanks very much,

 Jeff

-- 
View this message in context: 
http://www.nabble.com/Help%21--Problem-with-qooxdoo-and-Ajax-support-tp16930273p16930273.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to