[imp] Compose Window Javascript issues

Jan Schneider jan at horde.org
Wed Oct 29 14:03:43 PST 2003


Zitat von Jim Buitt <jbuitt at siue.edu>:

> When a user opens up the compose window, the default behavior is that
> they will be warned 5 minutes and 1 minute before their session will end.
>  I've modified the Javascript a little to notify the user at 5 minutes
> and 1 minute, but it will then automatically save the message to the
> user's Drafts folder right before their session will end. However, for
> some reason IE 6.x does not act the same as Netscape/Mozilla.  If a user
> using IE does not respond to the first warning then they will never get
> the second warning nor will it get to the point of the automatic save.
> In Netscape and Mozilla, users will get the first notification, then if
> they don't respond they will still get the second notifcation.  Then the
> final alert message will appear and it will do the automatic save.  Is
> there something in IE's Javascript implementation that causes the
> window.setTimeout function to behave differently?  Has anybody else ran
> across this "feature"?

IE stops execution of all scripts (as well as meta refreshes) while it is
waiting for a user prompt. This includes timeouts/intervals. It's
debateable which behaviour is the correct one, but after all you can't do
anything about this fact.

In IMP from CVS HEAD these prompts are gone and the user can instead restore
his message after he logged in again.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the imp mailing list