[Dojo-interest] Re: Re: How to hook addOnUnload?
troyf
troyf at adbeast.com
Wed Jan 31 09:31:02 MST 2007
Sorry James I must have misread the first time. I've tried window.add....
and it works. Why is it though that I can't use something like
dojo.event.connect(window, "beforeunload", func)
Troy
"James Burke" <jburke at dojotoolkit.org> wrote in message
news:1862bbfd0701301650j3f29ca25tb836f793c56bdbfc at mail.gmail.com...
> Looking at the code again, I didn't use dojo.event.connect, but did
> used addEventListener for safari only, and addOnLoad for everything
> else:
>
> if (dojo.render.html.safari) {
> window.addEventListener("beforeunload", func, false);
> } else {
> dojo.addOnUnload(func);
> }
>
> James
>
> On 1/30/07, troyf <troyf at adbeast.com> wrote:
>> Do you know how I can use event.connect? I couldn't get it to work.
>>
>> > You should be able to use dojo.event.connect.
>> >
>> > James
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
More information about the Dojo-interest
mailing list