Pablo Vázquez Blázquez wrote:
Using dojo.addOnUnload(function) neither works. Besides that, I would
need sht like dojo.addOnBeforeUnload, but it does not exist.
I don´t think I should subscribe for an ajax-request-completion event,
but for the beforeunload one, don´t I?
Thanks.
Use the dojo.connect function to listen to an arbitrary event. See the
comments to this related post:
http://dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-support/when-does-unload-event-get-fired
I don't use it myself. Just pointing you in the right direction.
Also, if the script is inline within your ajax response, see the
recently updated notes on Handling AJAX Responses here:
http://struts.apache.org/2.x/docs/ajax-tags.html
(its written for 2.1 but mostly applies)
I'd consider turning on separateScritpts as well.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]