My capstone team decided to use Qooxdoo as an interface for our project. We are developing applications for OpenFlow controllers using NOX, so we use the NOX web services infrastructure. I am having trouble getting data from the service; I know that the service works, because if I go to the URL using Firefox, the necessary data will appear. Here is the relevant part of my code:
var req = new qx.io.remote.Request("http://localhost/ws.v1/hello/world", "GET", "text/plain"); req.addListener("complete", function(e) { this.debug(e.getContent()); }); var get = new qx.ui.form.Button("get"); get.addListener("execute", function() { alert("The button has been pressed"); req.send(); }, this); form.addButton(get);
In the firebug console, I get this message after clicking on a warning:
008402 qx.io.remote.Exchange: Unknown status code: 0 (4)
And if I press the Get button again, I will get this error:
027033 qx.io.remote.transport.XmlHttp[56]: Failed with exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: file:///home/user/qooxdoo-1.0-sdk/framework/source/class/qx/io/remote/transport/XmlHttp.js :: anonymous :: line 279" data: no]
I also looked at the Twitter client tutorial, however the "dataChange" event, which I set instead of the "tweetsChanged" event, never fired. Any help is appreciated, thanks.
source share