Something could be throwing an error and keeping JS from running.In Chrome, hit CTRL-SHIFT-J to open up the JavaScript console. Any errors will show up there.
If it's a matter of a custom JS trigger not running when publishing to Flash, you might be running into a security issue. Try running it from a web host or publishing to CD and running in the EXE wrapper to see if the symptoms change.
ctrl shift j .............will not even open a console in chrome for me. I have no idea what is going on, it was working and I tried to add a Java code I found of yours for sending email and then it all quit working. Not saying it was your code I just don't know what I did.
Yes I can attach that as soon as it finishes publishing. I made a few space changes to the java script and want to see if that is going to make a difference. thank you for your help in this matter.
I can see why it's shutting down JS but there are a few other problems with the script. In the GetVar() calls. A strange character appears. Change that to a single or double quote.
var userEmail=GetVar(“emailFromStorylineâ€); var userScore=GetVar(“scoreFromStorylineâ€);
You'll also want to use quotes around your email address AND add mailto. I've made the link construction into a single line. It looks like you're not using the userEmail or userScore variables in your email link. Did you mean to?
var player=GetPlayer();var userEmail=GetVar("emailFromStoryline"); var userScore=GetVar("scoreFromStoryline");
//construct the linkvar link= "mailto:kevin@aspectmediainc.com&subject=" + encodeURI("Course Completion")+"&body=" + encodeURI("TQIP 2014 course is complete.");
I have to admit I don't know Java. I don't need to send their score so do I need that line of code? ideally I would love for it to email the certificate. However I'm finding that to be next to impossible.
9 Replies
Hey Kevin -
Something could be throwing an error and keeping JS from running. In Chrome, hit CTRL-SHIFT-J to open up the JavaScript console. Any errors will show up there.
If it's a matter of a custom JS trigger not running when publishing to Flash, you might be running into a security issue. Try running it from a web host or publishing to CD and running in the EXE wrapper to see if the symptoms change.
Thanks Steve,
ctrl shift j .............will not even open a console in chrome for me. I have no idea what is going on, it was working and I tried to add a Java code I found of yours for sending email and then it all quit working. Not saying it was your code I just don't know what I did.
Can you attach the user.js file from the published output? Should be able to tell what's going on from there.
You can open the JS console by clicking this button in Chrome and selecting Tools > JavaScript Console.
S
Yes I can attach that as soon as it finishes publishing. I made a few space changes to the java script and want to see if that is going to make a difference. thank you for your help in this matter.
Steve is there a way for me to email the certificate to a specific email address?
Steve here is the file you requested.
Hey Kevin -
I can see why it's shutting down JS but there are a few other problems with the script. In the GetVar() calls. A strange character appears. Change that to a single or double quote.
You'll also want to use quotes around your email address AND add mailto. I've made the link construction into a single line. It looks like you're not using the userEmail or userScore variables in your email link. Did you mean to?
Steve,
I have to admit I don't know Java. I don't need to send their score so do I need that line of code? ideally I would love for it to email the certificate. However I'm finding that to be next to impossible.
Thanks for your help Steve I got it to work. It doesn't sent cert but that is ok.
This discussion is closed. You can start a new discussion or contact Articulate Support.