It is necessary because else references between qooxdoo objects are not
removed and the memory allocated by these objects is not released. This
would result in a big memory leak each time the page is closed.
You can try the following (realy ugly) hack to test if the dispose
method is the problem:
After loading qooxdoo.js put following snippet into your page before
window.application.main:
<script type="text/javascript" language="JavaScript">
QxWidget.prototype.dispose = function () {
return;
}
</script>
Patrick W. Fraley schrieb:
Hi,
ok this makes sense then. Would it be possible to override the
function that calls each objects dispose method? Why is it called?
How important is this dispose method?
Patrick
Dietrich Streifert schrieb:
Qooxdoo does a call to the dispose method of each object created. So
if you have a lot of objects this might be the problem if you leave
the page. This happens before the new page is loaded!
Maybe Sebastion has some hints how this can be handled.
Patrick W. Fraley schrieb:
Hi Oliver,
well the odd thing is I am not starting any scripts. I can recreate
the problem even if I just klick a regular link, no JS started here,
so that is why I though it must be something qooxdoo is doing???
Does qooxdoo have a DESTROY function, that gets called when the page
unloads and that does cleanup?
Patrick
Oliver Vogel schrieb:
Hi patric!
This is a known problem im FF!
The problem is, that the execution time of your JS-Script is "to
long".
If the execution-time of a Javascript take more than x sec (don't know
exactelly the value of x) this message appears.
The only way i know is to shorten the execution time of your script
Olli
==================================================
Diplom-Informatiker
Oliver Vogel
Geschaeftsfuehrer
Meins und Vogel GmbH E-Mail: [EMAIL PROTECTED]
Esslinger Str. 45 Tel.: +49 (7153) 6136-20
Fax: +49 (7153) 6136-99
D 73207 Plochingen http://www.muv.com/
Handelsregister: Esslingen am Neckar HRB 3536
Geschäftsführer: Dipl.-Inf. Klaus Meins
Dipl.-Inf. Oliver Vogel
==================================================
"wer Rechtschreibfehler findet darf sie behalten"
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Patrick W. Fraley
Gesendet: Mittwoch, 15. März 2006 11:16
An: [email protected]
Betreff: [qooxdoo-devel] Weird Message
Hi List,
I have a weird problem with JavaScript and long ( I mean very long
QxMenues ).
I have a page that contains a toolbar with some menues, now one of
these menus can get very very long. And when it does I get the
following message when I klick a link and the next page is beeing
loaded:
Warnung: Nicht antwortendes Skript
Ein Skript auf dieser Seite ist evtl. beschäftigt oder es
antwortet nicht mehr ....
"Skript Stoppen" "Fortsetzen"
When I klick "Fortsetzen" often enough the next page will load
eventually, but this is not really acceptable. Now this happens
ins FireFox 1.5.0.1
I have not yet tested it in IE.
Does anyone know what is happening here? All I am doing is
klicking a link, which calls a javascript which does a
document.location and this link is just a regular link on the
page, nothing to do with the toolbar. When I take the toolbar out
of the page all works fine. So it seems when the Page "unloads"
that there is a script started by qooxdoo, which does take up a
lot of processing time.
How can I get around this problem?
tia
Patrick
--
***************************************
COMsulting Gerhard Faehling GmbH
Patrick W. Fraley
Oeverdieker Weg 6
23669 Timmendorfer Strand
Tel: 04503 / 7033-25
Fax: 04503 / 7033-13
E-Mail: [EMAIL PROTECTED]
Internet: www.comsulting.de
***************************************
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel