Skip over navigation

Endtime Counter

Script to Force Submission of Blackboard Assessments at Time-up and Prevent Copying / Pasting / Printing

Use at your own risk! Feel free to make modifications, but please share with us (blackboard@princeton.edu).

Feedback and questions: blackboard@princeton.edu

Instructions for System Administrator

Bb r9.1 Service Pack 6

With Service Pack 6 of Release 9.1, the forced submission feature is built in, but if you are looking for the no copy/no print feature, you may still want to install the building block.

Bb r9.x

This is now a building block, instead of a .js file you have to extract from a zip file and install on your server.

Thanks to Damian Sweeney of the University of Melbourne, the Princeton created block has been modified to allow for separate functionality of the no copy/no print and and the timer aspects of the script, so users have the option of using the no-copy only, counter_endtime only or both options. The changes are two new script files, which are just cut and paste jobs from the original script and some new text for the instructions page.

This version of the .js is for Bb r9.x:
Download and install this Building Block: pu-test-timer-1.0.8.war

 


Bb r7.2 through r8.x

Unlike the version for Bb r9.x, his version is not a building block and does not allow for separating out functionality.

This version of the .js is for Bb r7.2 through r8.x:
Extract the .js file from this zip. (This .js file was updated 3/10/2008 so that short answer and essay question responses are, in fact, saved when the test is submitted with this script, even if they are done in the VTBE. We have not verified this for versions older than 7.2)

 


Bb r7.1 and below

Unlike the version for Bb r9.x, his version is not a building block and does not allow for separating out functionality.

This version is for Bb release prior to 7.2, when the timer appeared in the status bar:
Extract the .js. file from this zip. (revised March 10, 2008)

This file needs to be put directly in the /webapps/assessment folder under the blackboard root folder--usually /usr/local/blackboard.  Also add the line "/webapps/assessment/counter_endtime.js" to the  file named "client_files.txt*" in your blackboard/config directory. Storing a file path in the client_file.txt file prevents the version 7 installer from deleting that file during upgrades.   If you are below version 7, add it anyway to prevent problems when you upgrade to version 7.

* When using the 7.0 installer, the installer's default behavior in most directories is to remove any unrecognized files and copy them to the backups directory.  By creating the files client_files.txt and client_dirs.txt in the Blackboard config directory and listing file and directory names in them, you can  prevent the installer deleting files you want kept.   For more details check Knowledge Base article 181-2758 on Behind the Blackboard.  It does a thorough job of explaining this.

If you are using Bb r7.2+, see article http://kb.blackboard.com/display/KB/Slow+scrolling+in+timed+tests in the Bb Knowledgebase for a fix for hanging and slowness related to the floating timer found in r7.2+ in timed tests when using Internet Explorer.



Instructions for Test Creater

Bb 9.1 SP10+

Forcing Submission of Blackboard Assessments at Time-up and preventing copy/print:

Start by creating a new Test. Give it a Name and Description.

In the "Instructions" section, click the "HTML" button in the thrid row tool bar. Paste the following in the text box:

<script language="javascript" src="/webapps/pu-test-timer-bb_bb60/counter_endtime.js" type="text/javascript"></script>

Click Update.

Type your instructions in the text editor and click Submit.

Finish creating the test.

Separating functionality:

If you prefer to have only the forced-submission portion or the no-print/no-copy portion of the scripts, they are provided as separate scripts.

For timed tests only, follow the instructions above, but use:

<p>insert your instructions here</p>
<script language="javascript" src="/webapps/pu-test-timer-bb_bb60/counter_endtime-timer-only.js" type="text/javascript"></script>

For copy and print restrictions use this sequence:

<p>insert your instructions here</p>
<script language="javascript" src="/webapps/pu-test-timer-bb_bb60/no-copy.js" type="text/javascript"></script>

The Ten-Second Issue

This forced-submission script is written to cause the test to submit 10 seconds before the actual time is up, to allow time for the submission process -- though you will encounter some cases where it takes longer than 10 seconds to submit, resulting in a "Needs Grading" message. I would suggest have students use Durham University's Browser Tester building block or something similar, as it has an Alert Test to make sure the 1 minute warning will appear. Sometimes a test will go minutes over the time limit because the student did not see or click away the alert -- but they cannot work on the test during this time either.

Message to Students

We suggest you include this message to students in the instructions if using the forced submission script:

If you do not submit the test at least 10 seconds before the time is up, the test will submit automatically. So if the test has a 60 minute time limit, you actually only have 59 minutes, 50 seconds to complete the test, as the time it takes to complete the submission process, which can take up to 10 seconds, is figured in the time.

The test will not submit automatically until student clicks away the 1-minute warning pop-up, though the timer keeps ticking -- so if the student waits 2 minutes to click the pop-up, the test will show that the student went 1 minute overtime. However, the student cannot continue working on the test while the pop-up is displayed -- nor after it has been clicked away, if the time limit has elapsed.


Bb 9.0 - 9.1 SP9

Forcing Submission of Blackboard Assessments at Time-up and preventing copy/print:

Start by creating a new Test. Give it a Name and Description.

In the "Instructions" section, make sure you select "HTML" below the text box. Also make sure the Visual Text Box Editor is OFF. Paste the following in the text box:

<p>insert your instructions here</p>
<script language="javascript" src="/webapps/pu-test-timer-bb_bb60/counter_endtime.js" type="text/javascript"></script>

Type your instructions where it says "insert your instructions here", between <p> and </p>.

Click Submit. Finish creating the test.

Add the Test to your course content. In the “Test Options” section, under Test Availability, just make sure you set the timer.

Separating functionality:

If you prefer to have only the forced-submission portion or the no-print/no-copy portion of the scripts, they are provided as separate scripts.

For timed tests only, follow the instructions above, but use:

<p>insert your instructions here</p>
<script language="javascript" src="/webapps/pu-test-timer-bb_bb60/counter_endtime-timer-only.js" type="text/javascript"></script>

For copy and print restrictions use this sequence:

<p>insert your instructions here</p>
<script language="javascript" src="/webapps/pu-test-timer-bb_bb60/no-copy.js" type="text/javascript"></script>

The Ten-Second Issue

This forced-submission script is written to cause the test to submit 10 seconds before the actual time is up, to allow time for the submission process -- though you will encounter some cases where it takes longer than 10 seconds to submit, resulting in a "Needs Grading" message. I would suggest have students use Durham University's Browser Tester building block or something similar, as it has an Alert Test to make sure the 1 minute warning will appear. Sometimes a test will go minutes over the time limit because the student did not see or click away the alert -- but they cannot work on the test during this time either.

Message to Students

We suggest you include this message to students in the instructions if using the forced submission script:

If you do not submit the test at least 10 seconds before the time is up, the test will submit automatically. So if the test has a 60 minute time limit, you actually only have 59 minutes, 50 seconds to complete the test, as the time it takes to complete the submission process, which can take up to 10 seconds, is figured in the time.

The test will not submit automatically until student clicks away the 1-minute warning pop-up, though the timer keeps ticking -- so if the student waits 2 minutes to click the pop-up, the test will show that the student went 1 minute overtime. However, the student cannot continue working on the test while the pop-up is displayed -- nor after it has been clicked away, if the time limit has elapsed.


Bb 7 or 8

From the Test Manager, click “Add Test”. Give it a name and description. 

In the instructions section, make sure you select HTML below the text box. Do not use the Visual Text Box Editor!   Paste the following in the text box:

<P>insert your instructions here</P>
<script language="javascript" type="text/javascript" src="/webapps/assessment/counter_endtime.js"></script>

Type your instructions where it says "insert your instructions here" between <P> and </P>

Click OK.  Finish creating the test.

In the “Modify the Test Options” section, just make sure you set the timer.

Ten-Second Issue

This script is written to cause the test to submit 10 seconds before the actual time is up, to allow time for the submission process -- though you will encounter some cases where it takes longer than 10 seconds to submit, resulting in a "Needs Grading" message. I would suggest have students use Durham University's Browser Tester building block or something similar, as it has an Alert Test to make sure the 1 minute warning will appears.  Sometimes a test will go minutes over the time limit because the student did not see or click away the alert -- but they cannot work on the test during this time either.

We include this message to students:

If you do not submit the test at least 10 seconds before the time is up, the test will submit automatically. So if the test has a 60 minute time limit, you actually only have 59 minutes, 50 seconds to complete the test, as the time it takes to complete the submission process, which can take up to 10 seconds, is figured in the time.

The test will not submit automatically until student clicks away the 1-minute warning pop-up, though the timer keeps ticking -- so if the student waits 2 minute to click the pop-up, the test will show that the student went 1 minute overtime. However, the student cannot continue working on the test while the pop-up is displayed -- nor after it has been clicked away, if the time limit has elapsed.


Browser Settings for versions older than 7.2, where the timer appears in the bottom status bar, rather than as a floating window at the top right:

To view the test timer, first make sure your status bar is turned on (under View in your browser menu), then you must use these settings. :

Mozilla (Netscape) for Windows: Go to Edit > Preferences > Advanced > Scripts & Plugins > check Allow scripts to change status bar text.
Firefox for Windows: Go to Tools > Options > Content > Enable JavaScript > Advanced > check Allow scripts to change status bar text.
Internet Explorer 7 for Windows: First, make sure that Status Bar is checked under View in the browser's menu bar. Then go to Tools > Internet Options > Security Tab > [Select Internet Zone] > Custom Level > check Enable for Allow Status Bar Updates via Script (under the scripting section).
While you are there, also check Enable for Allow Programmatic clipboard access.
This will prevent a dialog box from opening when you start the test asking if you want to allow clipboard access.
If a student should get this dialog box, selecting either Allow access or Don't allow will not override the script's no copy/paste/print action.
Firefox for Macintosh: Go to Preferences > Content > Enable JavaScript > Advanced and check Change status bar text.
Safari for Macintosh: Select Safari Menu > Preferences > Security > select Enable Java and Enable JavaScript.