Document 7875895

Download Report

Transcript Document 7875895

Generators 101
Form
LAMP
Mail
Bubbles
& Blanks
End of Course Surveys
Form Mail
Allows
for short answer/short essay
types of questions only.
Does
not allow you to specify a custom
numbering scheme.
Form Mail
Has
As
no answers text file associated with it.
a result, it does not check responses
for completion on submitting and does not
contain data for correct responses.
Form Mail
Has
printable Web confirmation. Email
confirmation is only sent from the INDLRN
listserv.
Posts
to formmail.cgi, outside of your coursespecific space:
<form method=POST action="/cgibin/DE/formmail.cgi">
Form Mail
SHTML
supplied.
file is named by LIF number
Ex: If I enter the lesson number as 88 and
the LIF as 21, the file will be named
LIF21.shtml.
Form Mail
Hidden Inputs in Form Mail SHTML Files:
<INPUT TYPE=“hidden” NAME=“subject”
VALUE=“Course ID LIF #21”>
This value will be used for the email subject.
The initial value is the course name and
number followed by the LIF number that you
entered into the generator.
Form Mail
Hidden Inputs in Form Mail SHTML Files:
<INPUT TYPE=“hidden” NAME=“return_link_url”
VALUE=“courseid/homepage.shtml”>
The value is where the user will be redirected
upon completion, based on the course name and
number you entered into the generator.
Form Mail
Hidden Inputs in Form Mail SHTML Files:
<INPUT TYPE=“hidden” NAME=“return_link_title”
VALUE=“Return to Home page”>
This puts the words “Return to Home page” on
the page it spits back to the student and that
is then linked to the course home page for the
student to click on.
Form Mail
Hidden Inputs in Form Mail SHTML Files:
<INPUT TYPE=“hidden” NAME=“required”
VALUE=“realname, email”>
This value indicates that the inputs named
“realname” and “email” must be completed by
the user. Do not rename these inputs!
Form Mail
Hidden Inputs in Form Mail SHTML Files:
<INPUT TYPE=“hidden” NAME=“recipient”
VALUE=“[email protected]”>
The value can be substituted with any desired
email. A value must be given for the file to
work.
LAMP Quizzes
Allow
for multiple choice, short answer, and
essay questions.
Do
not let you specify how items will be
numbered. However, you can specify a random
order for questions using CASE or by
specifying that option in the actual LAMP text
files.
LAMP Quizzes
Answers
text files are created and
stored in the same course folder where
the quiz pages will be stored.
Multiple
choice responses in LAMP
quizzes can be checked when submitted.
LAMP Quizzes
Have
printable Web confirmation. No email
confirmation is sent, unless the results are
passed on to an INDLRN account.
Post
to respondLAMP.cgi, outside of your
course-specific space:
<FORM METHOD="POST" ACTION="/cgibin/ilquiz/LAMP/respondLAMP.cgi" … >
LAMP Quizzes
Each
time the quiz is accessed, a CGI script
uses these TXT files to rewrite the HTML
quiz files to that directory.
This is why the TXT files should not be
deleted even after HTML files are created!
LAMP Quizzes
LAMP TXT Files:
Each one-line
question is preceded
by a line identifying
the question type
(Ex: :TYPE:MC, S, or
P) and the line
“:QUESTION”.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
LAMP Quizzes
LAMP TXT Files:
For multiple choice
questions, each answer line
is preceded by the line
“:ANSWER#:X”, where # is
the answer number and X is
100 or 0, depending on
whether or not the answer
is correct.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture
LAMP Quizzes
LAMP TXT Files:
Each item ends with the
line “:POINTS” and a line
with the number of points
assigned to the question. A
blank line then separates
each question from the
next one.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
LAMP Quizzes
LAMP TXT Files:
The last four lines are
preceded by the #
symbol. The first of
these includes the
course name and
assignment information;
the last one, the
submission email.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
LAMP Quizzes
LAMP TXT Files:
Because some text editors use
characters & line breaks that are not
recognizable by the CGI script, some
QuickTime™ and a
strange characters may appear on the
TIFF (LZW) decompressor
quiz HTML page.
are needed to see this picture.
For this reason, we recommend you
have an IT or TT edit these files
for you.
LAMP Quizzes
Because
the HTML
files are regenerated
from the text files
each time they are
requested, you should
not edit LAMPgenerated HTML files
to fix an error.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
Bubbles & Blanks
Has
four types of questions: multiple
choice, short answer, essay, and file
attachments.
Allows
you to specify attachments as
optional, and you can number the questions
however you like (ex: 1, 2a, 2b, 2c, 3.1, 3.5,
4i, 4ii, 5) .
Bubbles & Blanks
Each
B&B quiz has its own answers text file
associated with it, which is located in the lifdata
folder of the course cgi-bin directory.
(webct/server/cgibin/courses/[coursename]/lifdata/)
As
a result, B&B checks responses for completion
and corrects multiple choice questions.
Bubbles & Blanks
Sends
copies of submissions to student and recipient.
Runs
a return check javascript (number indicates number of questions to check)
to make sure all required items are completed. Then, it posts to bbprocess.cgi in
the course’s cgi-bin student folder:
<form … method="POST" action="/cgibin/courses/nikki101fa04/student/bbprocess.cgi" onSubmit="return check(4)">
Bubbles & Blanks
The
SHTML file is named by LIF number
supplied.
Ex: If I enter the LIF as 99, the file will be
named LIF99.shtml. This file will depend on
the LIF99.txt file in the course cgi-bin
directory’s lifdata folder.
Bubbles & Blanks
Hidden Inputs in B&B SHTML Files:
<INPUT TYPE=“hidden” NAME=“lifNum”
VALUE=“04”>
This value will be used to locate the answers
text file in the course cgi-bin directory’s
lifdata folder. In this example, the page will
look for LIF04.txt, not LIF4.txt.
Bubbles & Blanks
Hidden Inputs in B&B SHTML Files:
<INPUT TYPE=“hidden” NAME=“title” VALUE=“Assignment
Submission Form”>
<INPUT TYPE=“hidden” NAME=“coursename” VALUE=“BB
101”>
These values, along with the lifNum, will become part
of the subject of the email submission.
Bubbles & Blanks
Hidden Inputs in B&B SHTML Files:
<INPUT TYPE=“hidden” NAME=“recipient”
VALUE=“[email protected]”>
The value can be substituted with any desired
email. A value must be given for the file to
work.
Bubbles & Blanks
B&B TXT Files:
Since questions may
be numbered any way
you like, the TXT
file contains the
numbering you
specified.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
Bubbles & Blanks
B&B TXT Files (Multiple Choice Questions):
For multiple choice questions, the line includes the
question number and the letter of the correct response,
separated by a triple colon (:::) separator.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
Bubbles & Blanks
B&B TXT Files (Short Answer/Essay Questions):
For short answer and essay questions, the line includes
the question number and the value “none”, separated by a
triple colon.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
Bubbles & Blanks
B&B TXT Files (File Attachment Questions):
For file attachment questions, the line will include the
question number, the triple colon separator, and the
word attach...
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
Bubbles & Blanks
B&B TXT Files (File Attachment Questions):
… followed by another triple colon separator, and the the
text that will be used to rename the uploaded file.
In this example, a student
submission would be named
by the student’s user ID
followed by “Bbanswer”, as
in “lnm105BBanswer.doc”.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
Bubbles & Blanks
B&B TXT Files (File Attachment Questions):
After the file name, there is another triple colon and a
list of accepted file types (or the word “any”). Another
triple colon follows with the words “required” or
“optional” to indicate whether or not the upload is
required.
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
Bubbles & Blanks
Because
some text editors use characters & line
breaks that are not recognizable by the CGI script,
some strange characters may appear on the quiz
HTML page.
For this reason, we recommend you recreate the
entire quiz in the B&B generator or you have an
IT edit these files for you.
End Surveys
End
of Course Surveys depend upon the
eoc_survey.shtml file in your course directory,
eocheader.html and eocform.html files in a common
cgi-bin directory on our server, and a database
outside of our control.
You
only have access to the eoc_survey.shtml
folder.
End Surveys
The eoc_survey.shtml file has the following
components:
a
directive to include eocheader.html
several
hidden inputs (with or without a dropdown list of instructors)
a
directive to include eocform.html
End Surveys
The eocheader.html file provides the title and
instructions.
<!--#include virtual="/cgibin/DE/eoc_survey/eocheader.html" -->
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
End Surveys
Hidden Inputs in eoc_survey.shtml:
<INPUT TYPE="hidden" NAME="CourseTitleandNumber"
VALUE="NIKKI0101 01WB" SIZE=17 MAXLENGTH=20
border=0>
The five-letter course name (“NIKKI”), four-digit
course number (“0101”), one-letter suffix (“ “), and
four-character version number (“01WB”) form the
course title and number value.
End Surveys
Hidden Inputs in eoc_survey.shtml:
<INPUT TYPE="hidden" NAME="CreditType" VALUE="NC"
SIZE=2 MAXLENGTH=2>
The value will be CR or NC, depending upon whether or
not the course is a credit course.
End Surveys
Hidden Inputs in eoc_survey.shtml:
<INPUT TYPE="hidden" NAME="College" VALUE=”ED"
SIZE=2 MAXLENGTH=2>
This value will be a two-letter college code. (AA, AG,
BA, CM, etc.)
End Surveys
Hidden Inputs in eoc_survey.shtml:
<INPUT TYPE="hidden" NAME="InstructorID"
VALUE="1234">
The value is the four-digit ID of the instructor. This
hidden input only exists if you have indicated that
there is only one instructor. Otherwise …
End Surveys
… a drop-down list appears for courses with
multiple instructors.
<p><SELECT NAME="InstructorID">
<OPTION SELECTED VALUE="">
(Please select your instructor)
<OPTION VALUE="1234">Nikki Masssaro Kauffman
<OPTION VALUE="5678">Laura Kauffman
</SELECT>
End Surveys
The eocform.html
file provides the
body of the survey.
<!--#include virtual="/cgibin/DE/eoc_survey/eocfor
m.html" -->
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.
End Surveys
End-of-Course
surveys post to an area outside of
your course-specific space:
<FORM
action="http://tango.outreach.psu.edu/tango/DE/c
ourse_survey.taf" method="POST">
End Surveys
Another Reason Why CASE Rocks:
CASE will be auto-generating the End-ofCourse Surveys--WOOHOO!!!
Quick Reference
Types of
Questions
Special
Numbering &
Ordering
Submission &
Response
Checking
Form Mail
LAMP
B & B
short answer, short
essay
multiple choice,
short answer, short
essay
multiple choice,
short answer, short
essay, attachments
none
no special
numbering, optional
random order
special numbering,
no random order
option
none
checks for
completion before
submitting, checks
MC responses for
recipient
checks for
completion before
submitting, checks
MC responses for
recipient
Quick Reference
Form Mail
Student
Confirmation &
Feedback
Where to Edit
LAMP
B & B
Web-printable
Web-printable
confirmation only, no confirmation only,
feedback
feedback as selfcheck quiz
Email confirmation,
feedback on MC
responses only
.shtml file only
.txt file* (in cgibin/course/lifdata
folder)
.shtml file
.txt file* (in
course lifs or
selfcheckquiz
folder)
CASE settings
*Edit this file at your own risk!!!
Quick Reference
Why is this form mail quiz not working?
Check
hidden input named “required” for this value:
“realname, email”.
Make
sure hidden input named “recipient” exists and
has a valid email address.
Make
sure there is an input named “email”, to get
sender’s email address.
Quick Reference
Why is this LAMP quiz not working?
Check your text file in BBEdit or TextWrangler for errors in
syntax, line breaks, and special characters. (See LAMP section
for help).
Make sure last line of test file is the # symbol followed byba
valid email address.
Check Assignment settings in CASE: Assignment Type, LAMP,
data File Name, # questions, etc. (Assignment Type determines
folder location of .txt and .shtml files.)
Quick Reference
Why is this Bubbles & Blanks quiz not working?
Check your text file in BBEdit or TexWrangler for errors in syntax,
line breaks, and special characters.
Check “lifNum” and “recipient” hidden inputs.
Make sure there are inputs named “studName” & “emAddress” to
supply script with sender’s email.
Check form onSubmit=“return check(#)”.
Check MIME types for attachments:
https://courses.worldcampus.psu.edu/cgibin/nikki/MIME/simpleMIMEs.html.