Hi Enes, most probably the final Abort alert happens, because the request does somehow fail... If I'm not mistaken, the alert() calls in your fillData method (or "sending", "receiving" handlers) cause the "completed" event handler to time out, because alert() is browser blocking, i.e. it stops the processing and consequently causes a timeout (or so), triggering the "abort" handler.
Please, especially when handling with RPCs and remote.Requests, do debugging with this.debug() or so, and firebug. Qooxdoo makes it easy! Don't be set back by matters seem complicated - filling a table with data is easy, you just need to get used to handling your toolkit right. You're on the right track. HTH, greetings Stefan On 13.01.2011 00:01, [email protected] wrote: > > 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 ------------------------------------------------------------------------------ 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
