Re: [qooxdoo-devel] qooxdoo: close() event not being seen?

2010-11-22 Thread Ken MacDonald
Getting close to figuring this out. I've caught the 'onbeforeunload' event in my close() method. In my close(), I'm trying to manually delete a bunch of qooxdoo objects, as IE gets a "slow running script" error if I leave the teardown/garbage collection to JS. I tried something similar to what Mart

Re: [qooxdoo-devel] Reclaiming memory from widgets

2010-11-22 Thread Fritz Zaucker
Dave, from Tobi Oetiker: Use the following mixin (include it in Application.js, then you can use it everywhere): // Allow destruction of all children of a widget qx.Class.include(qx.ui.core.Widget, YOURAPP.ui.MDestroyAll); The mixin is attached, just put the right name

[qooxdoo-devel] Reclaiming memory from widgets

2010-11-22 Thread Dave Baggett
What is the right thing to do to permanently dispose of a widget? Should I be called widget.destroy()? I ask because when I call that on a container it seems to leave the container's children around. Should I be doing a container.removeAll() and hook the _afterRemoveChild callback to do a .destroy

Re: [qooxdoo-devel] qooxdoo: close() event not being seen?

2010-11-22 Thread Ken MacDonald
Works slick. Thanks, Daniel! Ken On Mon, Nov 22, 2010 at 11:32 AM, Daniel Wagner wrote: > Hi Ken, > > "close" is a method defined by qx.application.AbstractGui, you just need > to override it in your application and return a string. > > Regards, > Daniel > > Ken MacDonald schrieb: > > Hi, > > I'm

Re: [qooxdoo-devel] Waiting on multiple events

2010-11-22 Thread Joffrey Fuhrer - NOVLOG
On 22/11/2010 16:10, panyasan wrote: > You can also work with the concept of "promises" or "deferred" functions > known from Python and now implemented for node.js: > > https://github.com/kriszyp/node-promise > > There is already a bug for implementing this for qooxdoo: > > http://bugzilla.qooxdoo.

Re: [qooxdoo-devel] Waiting on multiple events

2010-11-22 Thread Joffrey Fuhrer - NOVLOG
On 22/11/2010 14:31, Derrell Lipman wrote: On Mon, Nov 22, 2010 at 08:26, Joffrey Fuhrer - NOVLOG mailto:joffrey.fuh...@novlog.com>> wrote: Hello there, qooxdoo-list! I'm wondering about a possibility to do something in qooxdoo without too much effort and trust that some of you may

Re: [qooxdoo-devel] qooxdoo: close() event not being seen?

2010-11-22 Thread Daniel Wagner
Hi Ken, "close" is a method defined by qx.application.AbstractGui, you just need to override it in your application and return a string. Regards, Daniel Ken MacDonald schrieb: > Hi, > I'm attempting to catch the "close" event (i.e. actually the browser's > 'onbeforeunload' event), but am not s

[qooxdoo-devel] trouble sending json over qx.io.remote.Request with POST

2010-11-22 Thread Johny Cage
Hi all I've run into this peculiar situation, which I'd like to ask you help for: I'm trying to send JSON to a Django server using the qx.io.remote.Request object, via the POST method, like so: var jsonset='{"mykey":["value1"]}'; var req = new qx.io.remote.Request(url, "POST"

[qooxdoo-devel] qooxdoo: close() event not being seen?

2010-11-22 Thread Ken MacDonald
Hi, I'm attempting to catch the "close" event (i.e. actually the browser's 'onbeforeunload' event), but am not seeing the event triggered at all, in any browser. My app is running as a qx.application.Standalone, and I've added a 'close' listener to it with an alert message, and returns a string to

Re: [qooxdoo-devel] Inspector problems

2010-11-22 Thread Daniel Wagner
Hi Ralf, OK, we're one step further, the user extensions were loaded correctly. The error you're getting is probably due to bug #4351 [1] which I fixed this morning. To get the fix, you can either move to trunk or wait for the next qooxdoo release (1.3, scheduled for early december, so it's ri

Re: [qooxdoo-devel] beginner's question

2010-11-22 Thread Mustafa Sak
Take a look to RPC. I am using Derrells great PHP RPC Contribution. As never as easy before to write a server client app. Von meinem iPhone gesendet Am 22.11.2010 um 15:32 schrieb slah : > > > Mustafa Sak-3 wrote: >> >> Don't forget Guilherme. >> >> Of course, many thanks to him and all t

Re: [qooxdoo-devel] Waiting on multiple events

2010-11-22 Thread panyasan
You can also work with the concept of "promises" or "deferred" functions known from Python and now implemented for node.js: https://github.com/kriszyp/node-promise There is already a bug for implementing this for qooxdoo: http://bugzilla.qooxdoo.org/show_bug.cgi?id=3999 The idea is that you ha

Re: [qooxdoo-devel] Tracking memory usage

2010-11-22 Thread Gabriel Munteanu
there is chromium builtin heap snapshot feature. http://www.chromium.org/devtools/google-chrome-developer-tools-tutorial#profiles cheers, Gabi From: Dave Baggett [qoox...@baggett.org] Sent: Monday, November 22, 2010 4:18 PM To: qooxdoo-devel@lists.sourcefor

[qooxdoo-devel] Tracking memory usage

2010-11-22 Thread Dave Baggett
Does anyone have suggestions for tools or methods to track down memory leaks and other similar problems? I've tried sIEve and drip and both of them crash on my application. I'd really like a tool that shows me the top N objects by memory usage. Dave -- View this message in context: http://qoox

Re: [qooxdoo-devel] beginner's question

2010-11-22 Thread slah
Mustafa Sak-3 wrote: > > Don't forget Guilherme. > > Of course, many thanks to him and all those who help me to start with this > wonderful framework. > > It was a good lesson about layouting, I'm using now HBox, VBox, Grid, etc. > > I've to learn now how to connect to a database, run querie

Re: [qooxdoo-devel] Inspector problems

2010-11-22 Thread ziepf
Hi, I use the local file of selenium_core and user-extensions.js Path:file//. Al lmy tests are on a Ubuntu Version 10.10 I tried the latest version of user-extensions.js form the svn repository and now I get the following erorr message: Qxh Locator: Error resolving qxh path. I try to test th

Re: [qooxdoo-devel] Waiting on multiple events

2010-11-22 Thread Derrell Lipman
On Mon, Nov 22, 2010 at 08:26, Joffrey Fuhrer - NOVLOG < joffrey.fuh...@novlog.com> wrote: > Hello there, qooxdoo-list! > > I'm wondering about a possibility to do something in qooxdoo > without too much effort and trust that some of you may have > some ideas about it, so here's my questioning : >

[qooxdoo-devel] Waiting on multiple events

2010-11-22 Thread Joffrey Fuhrer - NOVLOG
Hello there, qooxdoo-list! I'm wondering about a possibility to do something in qooxdoo without too much effort and trust that some of you may have some ideas about it, so here's my questioning : Is there any facility in qooxdoo that allows to listen to multiple events at once, and perform a given

Re: [qooxdoo-devel] Invitation to connect on LinkedIn

2010-11-22 Thread Andreas Ecker
Hi Kutlay, you posted this LinkedIn invitation also to the qooxdoo-devel list ... :-| Anyway, gonna process your personal request. You (and all others that may be interested as well) might want to register with the LinkedIn "qooxdoo" group (it's rather a badge than a regular group). TTYL, Andr

[qooxdoo-devel] Invitation to connect on LinkedIn

2010-11-22 Thread Kutlay Özger via LinkedIn
LinkedIn Kutlay Özger requested to add you as a connection on LinkedIn: -- Andreas, I'd like to add you to my professional network on LinkedIn. - Kutlay Accept invitation from Kutlay Özger http://www.linkedin.com/e/2cnq6m-ggtaswh2-4f/m6VjKcDuP

Re: [qooxdoo-devel] Variable Handling?

2010-11-22 Thread thron7
Just omitting 'var' declarations is not a good solution, since you are polluting the global name space this way. Either return btnSend etc. as return value from the method that created it, or, if that is not feasible, attach them to "this" (e.g this.btnSend = new ...), to be able to access them lat

Re: [qooxdoo-devel] Variable Handling?

2010-11-22 Thread Gabriel Munteanu
Hello, my proposal to you would be to declare them in the main function, and pass them as parameters to the makeCopiesArea,makeStatusBar and createBox1 functions. also, mind that in order for this line: box.add(this.createBox1()); to work , you should return container from createBox1() function

[qooxdoo-devel] Variable Handling?

2010-11-22 Thread Qoodary
Hello, In my application.js I have the Main function and some other functions. >From main function I call function makeCopiesArea, makeStatusBar and createBox1 functions. In my main function I have added a controller To have access from main function to the btnSend, selectBoxColoroption and tx

Re: [qooxdoo-devel] So called micro optimizations....someone said so....!!!

2010-11-22 Thread Daniel Wagner
I can confirm t.'s oberservations: Running the code in Chrome 9/Linux, I'm seeing a decrease in performance of somewhere between 15 and 40 percent (this is after reloading the Playground). If I run the code multiple times in succession, the numbers vary wildly, between -17 and 35 percent. In O

Re: [qooxdoo-devel] So called micro optimizations....someone said so....!!!

2010-11-22 Thread thron7
yes, but results seem somewhat arbitrary if you re-run the sample a couple of times. on chromium 6.0.480.0 (linux) i had "gains" between -50% and +100%, with all kinds of values in between. on a slower browser (opera 10.11 on linux) it was more stable around +10%. still your argument holds. do you

Re: [qooxdoo-devel] beginner's question

2010-11-22 Thread Gabriel Munteanu
Hello, your query on this thread is being discussed here: http://qooxdoo.678.n2.nabble.com/beginner-s-question-td5759778.html or you wish to ask something else here related to this piece of code? cheers, Gabi From: slah [slach...@gmail.com] Sent: Sunday, No

Re: [qooxdoo-devel] So called micro optimizations....someone said so....!!!

2010-11-22 Thread thron7
On 11/21/2010 03:50 PM, Guilherme Aiolfi wrote: > Let's see if Stefan is willing to give us the patch :) The patch is already there, attached to (reopened) bug#4122. T. -- Beautiful is writing same markup. Internet Exp

Re: [qooxdoo-devel] So called micro optimizations....someone said so....!!!

2010-11-22 Thread Tobias Oetiker
Hi Martin, Today Martin Wittemann wrote: > Hello Stefan, > > Improvements for a 1000 line custom code application. > -- > Unoptimized Optimized Improvement > Load runtime: 14352ms 11406m

Re: [qooxdoo-devel] So called micro optimizations....someone said so....!!!

2010-11-22 Thread Martin Wittemann
Hello Stefan, Improvements for a 1000 line custom code application. -- Unoptimized Optimized Improvement Load runtime: 14352ms 11406ms 21% Main runtime: 133ms 1