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 Martin
suggested the other day, where you run a timer that gives the browser an
interrupt every once in a while so it doesn't think you're in a loop.
Essentially it does a few things at a time until they're all done.

Martin's method worked great when I was building up all of my Lists, but
when I try to delete the lists in a similar fashion in my close() method, it
doesn't seem to want to run a timer - maybe because it's in an event handler
already? - and just exits.

Anyone else tried to do something like this and have any luck?

I'm also wondering if there is a way to cancel the "close"/"onbeforeunload"
event, without going through the "are you sure..." dialog. If I could cancel
the event, I could probably just re-issue the "close" on the application,
and get it to complete some more of the deletion, until there were no more
objects to kill. Does this seem reasonable to anyone?
Thanks,
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 seeing the event triggered at all,
>> > in any browser.
>>
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to