Java to email notes within Storyline

I have something strange happening. I tested javascript that allowed users to open an email pre-populated with notes they had entered throughout the course. We use Moodle. I tested it in Moodle before recording narration and it worked perfectly. I recorded the narration and uploaded to Moodle and now it does nothing when I click the icon set to execute the script.  Any idea why it won't work when the only difference between this version and the one I tested is the addition of narration? Unfortunately, I didn't "save as" that file from before, but I didn't mess with the code at all since I successfully tested it. Any ideas? Does anyone have a proven javascript to email from Storyline?

This is what I am using (my variables are in " "):

var player = GetPlayer();
var email=GetVar("email");
var subject="My notes from ELL course";
var body_start=GetVar("notes");
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+body_start;,'emailWin');

4 Replies