'13 Print Results (report.html) problems

Nov 26, 2013

I have a couple of problems with the option to allow users to print their results.

If the student is using the flash interface (quiz.html) and not the html interface, sometimes the questions don't appear in the report. I tracked this down to a problem with how resuming a quiz is done. There is a JavaScript variable named g_listQuizzes which contains a list of quizzes, each quiz has an array of questions stored in an arrQuestions property.

As the user proceeds through the quiz the BW_StoreQuestionResult and BW_UpdateQuizResults cases will fire in quiz_content/quiz.js. BW_StoreQuestionResult updates g_listQuizzes and BW_UpdateQuizResults updates g_oContentResults. When resuming a quiz only BW_UpdateQuizResults fires.

In order to resume a quiz I assume that the data for each question has to be stored somewhere (probably in a flash storage area). When resuming a quiz the BW_StoreQuestionResult event needs to be fired for each stored question but currently it isn't. This causes the report.html file to not always display the the full set of questions.

The HTML5 report is even worse. When using quiz_html5.html the report just doesn't work. The prompting for a name works but afterwards the report.html page is never opened. This is with a web published quiz running on an internal web server. Digging around in player_compiled.js shows that g_oContentResults and g_listQuizzes are not correctly maintained so even if the report.html file would open the report doesn't have the correct data to read. A bunch of the code for updating g_oContentResults is underneath LMS only code (but  I still don't see where g_listQuizzes is completely maintained). Why does the HTML5 interface require a LMS just to support the print/report functionality?

Be the first to reply

This discussion is closed. You can start a new discussion or contact Articulate Support.