Mysql JavaScript
Jun 09, 2015
By
Alex Rage
Hello , I have created scorm app with articulate storyline 2 and publish it on the web with a server Claroline 1.11.10-1 owned by me
During the play of the scorm , I want to recover some data (number of try, time played and where the player had wrong answer) and store them in my own Mysql Database.
I tried to use a script in Javascript( "Execute Javascript" inside of Storyline 2) to activate a PHP file (stored in my localhost Claroline Server) which will launch the querry on the mysql database. But I only get no answers and no results.
Am I on the right track or I should revise my thinking ? Can someone can help me on this matters ?
Thanks in advance .
1 Reply
You ARE on the right track, but be very careful with your code as Storyline is not very forgiving when it comes to syntax errors - a missed semicolon can potentially break the code.
Also, never try Storyline JS locally unless it too is served via localhost.
This discussion is closed. You can start a new discussion or contact Articulate Support.