Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
I think i get it, great ;) Thanks for your help !! On Tue, Aug 16, 2011 at 2:56 PM, thron7 wrote: > ** > > > On 08/16/2011 02:34 PM, franck34 wrote: > > > > > >> > var req = new qx.io.request.Xhr(url,'POST'); >> >> To do everything in the constructor is ok if you intend to throw eac

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread thron7
On 08/16/2011 02:34 PM, franck34 wrote: > var req = new qx.io.request.Xhr(url,'POST'); To do everything in the constructor is ok if you intend to throw each UtilXhr instance away after its instantiation. Notice i'm noob in OO too so ... what do you mean ? need i

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Updated version: https://gist.github.com/1148887 qx.Class.define("tradingactive.UtilXhr", { extend : qx.core.Object, construct: function(url,data,cb,caller) { var req = new qx.io.request.Xhr(url,'POST'); if (data) req.setRequestData(data); req.addListener("succe

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
On Tue, Aug 16, 2011 at 2:06 PM, thron7 wrote: > > > On 08/16/2011 01:36 PM, franck34 wrote: > > Here is the "good" one : > > > > https://gist.github.com/1148887 > > > > -- > > > > qx.Class.define("tradingactive.UtilXhr", { > > extend : qx.application.Standalone, /

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread thron7
On 08/16/2011 01:36 PM, franck34 wrote: > Here is the "good" one : > > https://gist.github.com/1148887 > > -- > > qx.Class.define("tradingactive.UtilXhr", { > extend : qx.application.Standalone, /* BUG: not the good class to > extend, which one ?? */ qx.core.Obje

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Here is the "good" one : https://gist.github.com/1148887 -- qx.Class.define("tradingactive.UtilXhr", { extend : qx.application.Standalone, /* BUG: not the good class to extend, which one ?? */ construct : function() { this.base(arguments);

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Mmmm sorry i forgot comments. Please wait. -- View this message in context: http://qooxdoo.678.n2.nabble.com/howto-make-a-simple-xhr-generic-class-tp6690748p6690989.html Sent from the qooxdoo mailing list archive at Nabble.com.

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Seem's raw tag are only available for viewable version of my email. Here is the code : https://gist.github.com/1148887 --- qx.Class.define("tradingactive.UtilXhr", { extend : qx.application.Standalone, construct : function() { this.base(arguments);

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread thron7
On 08/16/2011 12:09 PM, franck34 wrote: > Here is my actual code, Where is your actual code?! T. -- uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying