struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <jeromy.ev...@blueskyminds.com.au>
Subject Re: Struts2 + Dojo 0.4 + unbeforeunload problem
Date Thu, 11 Sep 2008 07:42:11 GMT
Pablo Vázquez Blázquez wrote:
> No idea or miss-explanation?
>

Use dojo's event model. You need to register a listener/subscriber for 
the event via dojo.

If you assign a listener directly to onbeforeunload or onload you'll 
overwrite the listeners that dojo needs to assign (or vice-versa, dojo 
will overwrite yours).

Check the dojo docs for examples. I can't think of it off the top of my 
head.

Also, there should be a dojo-specific event you can subscribe to for the 
completion of an ajax request, rather than the page-related events.  
Check the recipes for that.


Hope that helps a little.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message