Sep 18, 2012
Hi, Storyline Fans -
I'm assisting a colleague with a bit of coding in an effort to capture the score from a Storyline quiz, and save it in a database (along with employee name, ID, date/time stamp, etc.). I do not use Storyline - but I have developed a series of ASP programs that did a similar function with Presenter and Quizmaker products.
Here is the code:
// get Storyline player
// get score
var score = p.GetVar("Results.ScorePercent");
// pass score to ASP program to eventual database update
var sHTML = "";
sHTML += '<form id="formScore" method="post" action="/PathToProgram/SL_Post_Scores.asp">';
sHTML += 'input type="hidden" id="Score" name="Score" value= ' " + score + " '>';
sHTML += '<br><input type="submit"><br>';
sHTML += '<form>';
The SL_Post_Scores.asp program will prompt the user to enter the network login ID and password; validate their credentials against our Company's Active Directory; and - if valid - retrieve their score (using Request.Form("Score") and other employee demographics and insert it into a database that stores all of our exam/quiz results (we're replacing this interim solution with the Cornerstone LMS soon - but not soon enough!). Does anyone see any problems with this approach?