On Wed, Nov 25, 2009 at 16:30, Charlie <[email protected]> wrote:
> Hi all
> I'm encountering a "Stop this script execution?" alert message with
> Internet Explorer, not when executing and using my application, but on
> closing it (i.e. by quiting the page or refreshing). My application is
> indeed quite big in terms of GUI (many tabviews containing
> qx.ui.table.Table components that I customized, commands, menuBar and
> toolBar, etc), but I really don't know how to fix this...
> First, I admit I'm not good at all at writing "destructors" for all my
> qooxdoo classes : can it have any influence on the page closing down
> speed? Second, I did not add any code in the close() or terminate()
> functions of my Application, so all this code called at closing time is
> called by the framework, not by me. Is there a way to disable this? I
> know it's not a good idea, but the IE support is unfortunately quite
> important for my customers, and I would prefer the application to leave
> a huge memory footprint in the browser than triggering this ugly
> javascript alert message and preventing a user from closing his browser.
>
Sigh. Yet more IE speed issue. I imagine that your application is QUITE
large if destruction is taking that incredibly long.
You might consider using the close() method and doing some of the
destruction progressively using qx.ui.progressive.Progressive and its
FunctionCaller renderer. An example of using that is in the demobrowser:
http://demo.qooxdoo.org/devel/demobrowser/index.html#progressive~ProgressiveLoader.html
Although this demo is showing Progressive and the FunctionCaller renderer
being used as a progressive loader, it can just as easily be used as a
progressive unloader. Your difficulty will be in figuring out what and in
what order to destroy. That task, however, is left as an exercise for the
reader. :-)
Cheers,
Derrell
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel