Delayed
feedback – Keyword answer
Use
- Where the user must type a response and feedback is given by the number
of correct key terms they have used.
Source: Questions
This section describes the source code for how you would write the questions
in HTML.
Example: <textarea name="q1" rows="3" cols="35"></textarea>
Your textarea tags must include the following attribute:
name="qX" – where X is the
question number
You may also include the following attributes for appearance:
rows="Y" – Y can be any
number. This gives height to your textarea
cols="Y" – Y can be any
number. This gives width to your textarea
Questions must always be numbered sequentially
starting from 1. There is no double-up of question numbers.
The Done button must always include the following attributes:
type="button"
name="done"
value="Done"
onclick="checkForKeywords(Z, this.form)" –
where Z is the number of questions
Example: <input type="button" name="done"
value="Done" onClick="checkForKeywords(2, this.form)">
The Reset button must always include the following attributes:
type="reset"
name="Reset"
value="Reset"
Example: <input type="reset" name="Reset"
value="Reset">
Below is the source code for the example.
Source: Javascript
It's preferable to link to a separate Javascript file although, for pages
individually loaded into Blackboard, including the script within the HTML
is acceptable.
There is only one part of the script that needs to be modified:
- Setting the question variables
Set two new variables for each question. The first is an Array and the
second is a string. The variables must appear as:
var vqX = new Array("Key","Key","Key");
– where X is the question number
and Key relates to each keyword(s) that should be used
within the answer.
var vqtX = "Question string"; – where
X is the question number and Question
string is the question as it will appear in the feedback window.
Example: var vq1 = new Array("Queensland","New South
Wales","Victoria","South Australia","Western
Australia","Tasmania");
vqt1 = "Write a sentence using all of the 'states' of Australia.";
Below is the source code for the Javascript of the above example.
|