View Full Version : Autofilling a table with recieved data

08-16-2007, 04: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

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.


08-16-2007, 09: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?

08-17-2007, 01: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");
doLMSSetValue("cmi.core.lesson_status", "failed");

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

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

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