Log of /trunk/webwork2/htdocs/js
Directory Listing
Revision
4914 -
Directory Listing
Modified
Thu Mar 29 19:48:58 2007 UTC (6 years, 1 month ago) by
glarose
More gateway fixes/additions. This commit
- moves javascript code for gateways into htdocs/js/gateway.js,
- updates the gateway template to use that,
- updates the gateway CSS file to use Louis Zulli's workaround
for IE6 not honoring position:fixed, and adds CSS definitions
for a score reporting box for multi-page, multi-attempt quizzes,
- updates the GatewayQuiz module to print a score reporting box
for multi-page, multi-attempt quizzes,
- updates the Grades module to correctly sort problems for
GatewayQuiz assignments that have randomly ordered problems, and
- adds some error checking to ProblemSetDetail to avoid people
doing things like submitting a zero time limit for a gateway.
Revision
4776 -
Directory Listing
Modified
Mon Feb 12 21:35:38 2007 UTC (6 years, 3 months ago) by
dpvc
Added comments about how to install the file.
Revision
4775 -
Directory Listing
Modified
Mon Feb 12 21:32:31 2007 UTC (6 years, 3 months ago) by
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.
Revision
4774 -
Directory Listing
Modified
Sun Feb 11 23:34:31 2007 UTC (6 years, 3 months ago) by
dpvc
Corrected comment indicating time was in micro- rather than
milliseconds.
Revision
4770 -
Directory Listing
Modified
Fri Feb 9 23:35:48 2007 UTC (6 years, 3 months ago) by
dpvc
Implements a JavaScript solution to prevent excessive reloads by
students who prop their books on the F5 key.
Revision
4391 -
Directory Listing
Added
Wed Aug 23 20:14:34 2006 UTC (6 years, 9 months ago) by
dpvc
This file helps WW manage the browsers windows that it opens. The
current approach is to use a separate window for the Problem Editor
and a third window for viewing the problem when you test it. This is
fine, except that if you use the navigation links in the editor, those
pages will open int he editor window, and this can mean the editor
window is used for non-editing functions. Worse, if you click on an
"Edit it" link in this window and expect a new one to open, you will
be surprised to see it appear in the current window.
This javascript file makes the editing window work as it was intended:
clicking on the navigation links opens those pages in the ORIGINAL
window again, not the editor window, so the editor window will be used
only for editing. It also uses the main window for viewing the
problems, so there are only two main windows now. This should
simplify the editing of problems.
To use this file, add
<script src="<!--#url type="webwork" name="htdocs"-->/js/ww-windows.js"></script>
to the .template file that you are using just before the </body> (not
that it must be at the END of the page, or it may not work properly).
This will also fix a problem with Firefox where the editor window
woudl not come to the front if it already exists and inot the
front-most window.