Storyline Javascript overide default report.html -
looking override default location of "print report" button in storyline - default directs report.html canned page can retrieve score , test results variables completed test - have same results sent report.php can work results on server side. story.js file looks like:
function onbweventinterval() ... case "bw_printresults": g_oprintoptions.bshowuserscore = (arrargs[0] == "true"); g_oprintoptions.bshowpassingscore = (arrargs[1] == "true"); g_oprintoptions.bshowshowpassfail = (arrargs[2] == "true"); g_oprintoptions.bshowquizreview = (arrargs[3] == "true"); g_oprintoptions.strname = arrargs[4]; g_oprintoptions.strmainquizid = arrargs[5]; g_oprintoptions.arrquizzes = arrargs[6].split(","); window.open(getbasepath() + g_strcontentfolder + "/report.html", "reports") break;
if change /report.html /report.php resolves issue, want leave story.js file alone re-created every project change.
there user.js file loads after story.js , empty, i'm not sure how override function / location in story.js file.
Comments
Post a Comment