Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Autofilling a table with recieved data

    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.

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    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?
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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", "");
    }

  • #4
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Can you look through that code to find what doLMSSetValue does?

    Currently, it looks as though it just fills in form fields.
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •