[system] Repository:
ViewVC logotype

Revision 4855

Jump to revision: Previous Next
Author: sh002i
Date: Wed Mar 7 18:22:21 2007 UTC (12 years, 11 months ago)
Log Message:
backport (dpvc): Implements a JavaScript solution to prevent excessive
reloads by students who prop their books on the F5 key.

backport (dpvc): Corrected comment indicating time was in micro- rather
than milliseconds.

backport (dpvc): Completely rewrote the file to use a different
technique.  Instead of looking for unbeforeunload events (which didn't
work reliably, since Firefox will reload the page before it has a chance
to install the handler), we look for F5 key events and F5 ignore keydown
events, but reload the page on F5 keyup instead.  This skips the
autorepeating keys and only reloads the page when the user lets go of
the key.  So there is only one reload.  After several autorepeated F5
keypresses, a dialog will appear asking you to check if something is
holding down the F5 key.

backport (dpvc): Added comments about how to install the file.

Changed paths:

Path Details
Directorybranches/rel-2-3-dev/webwork-modperl/htdocs/js/limit-reloads.js modified , text changed
Directorybranches/rel-2-3-dev/webwork2/htdocs/js/limit-reloads.js modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9