...

View Full Version : Autofilling a table with recieved data



elainebateman
08-16-2007, 03:40 PM
I'm creating CBT using a package called Infopak. Its set up to send test scores at the end of the course. An example of the info it sends is here..

LessonName=DB001 How to Drink Beer
StudentName=Fred Flintstone
TotalSteps=10
IncorrectSteps=1
Score=90%
Status=PASS
ListOfIncorrectSteps=3

I'm supposed to create an ASP page on the web server to receive the output for subsequent storage and reporting in MS Excel.

Can anyone please point me to a script which I could use to do this?

Thanks folks.

Elaine.

Daemonspyre
08-16-2007, 08:36 PM
How does the CBT program "send" you the test scores? In an email, CSV file?

Knowing how it sends you the data is key to answering your question.

As to taking the data and sending it to MS Excel, why not send it to a database and then just use ASP to display said data on screen?

elainebateman
08-17-2007, 12:28 PM
I came across this js file called scormfunctions. Does this answer your question?

Filename: SCOFunctions.js
**
** File Description: This file contains several JavaScript functions that are
** used by the Sample SCOs contained in the Sample Course.
** These functions encapsulate actions that are taken when the
** user navigates between SCOs, or exits the Lesson.

// score: String
function sendScore(lessonName, studentName, totalSteps, incorrectSteps, score, status, listOfIncorrectSteps)
{
if (!hasLMS) return;

doLMSSetValue("cmi.core.score.raw", score);

if (status=="true" )
doLMSSetValue("cmi.core.lesson_status", "passed");
else
doLMSSetValue("cmi.core.lesson_status", "failed");

// doLMSSetValue("cmi.core.exit", "");
}

Daemonspyre
08-17-2007, 02:07 PM
Can you look through that code to find what doLMSSetValue does?

Currently, it looks as though it just fills in form fields.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum