Hi Peter,
thanks for your help!
I see that your example works fine but not my code.
qx.Class.define("feedreader.view.ExerciseDataModel",
{
extend : qx.ui.table.model.Simple,
construct : function() {
this.base(arguments);
this.setColumns(["ID", "Name", "Alias" ], ["id", "name",
"alias"]);
var req = new
qx.io.remote.Request("http://localhost:8080/testwebapp",
"GET", "application/json");
req.addListener("completed", this.fillData, this);
req.addListener("sending", function(e) {
alert("SENDING : ");
});
req.addListener("receiving", function(e) {
alert("RECEIVING : ");
});
req.addListener("aborted", function(e) {
alert("ABORTED : " + e);
});
req.send();
},
fillData : function(e) {
alert("start");
//var myObject = eval('(' + e.getContent() + ')')
var myObject = e.getContent();
alert(myObject);
this.setDataAsMapArray(myObject);
alert("finished");
}
});
I get a Sending, Receiving and then Aborted alert.
This code also doesn't work :
req.addListener("completed", function(e) {
alert("start");
//var myObject = eval('(' + e.getContent() + ')')
var myObject = e.getContent();
alert(myObject);
this.setDataAsMapArray(myObject);
alert("finished");
});
I get a Sending, Receiving, start, myObject (data!) and then Aborted alert.
I cannot believe that it is so troublesome to create a table with data.
Does anyone have an idea ?
Greetings,
Enes
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/qx-io-remote-Reques-throws-this-setUrl-is-not-a-function-tp5900771p5916483.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel