Java script to record Quiz score
I have a SQL database so I can record where in a module learners click. Here is an example of workign code: window.top.triggerLogging("widget", "codes");
Now, I am trying to record the quiz results. But it is not working. Here is the non-workign code. It is not recording anything to the database:
window.top.triggerLogging("Quiz 1", player.GetVar("Results.ScorePoints"));
The Results.ScorePoints is a variable created by SL when you create a quiz results page. I am trying to record the actual value of the variable.
Can anyone see what I might be doing wrong?