I am experiencing an issue with javascript within my articulate storyline project, as the email and print buttons do not function, I have read all of the various threads about publishing and accessing via the internet or to CD but nothing works. Is there anybody that may be able to help with my issue?
It would speed things up if you can share the storyline file (or a dummy version of it). But if you can't, then posting the javascript with some info about it might be fine.
I have attached the .story file, it is really bugging me to the point where i am thinking about starting the project from scratch to see if I can get it to work.
Hi, GForces Training -- I see that Jerson is helping you here! I also wanted to add that although we don't provide support for JavaScript coding, it may be helpful to take a look at this document on JavaScript Best Practices. Please feel free to update if you are all set or if you're still looking for additional suggestions from the JS experts in the community!
Thanks Jason, such a simple thing and yet because I was getting frustrated I couldn't see it. I corrected the mistake and it works for me to. Thanks so much for your help.
Christie I will definitely take a look at that section, to help with further scripts that I use.
Do you use any programs to edit your javascript or do you use the built in editor in Storyline?
I use Brackets. Its a free open source editor. What I like about it is that it colors the code so it's easier to read. Usually I code the javascript there and paste it into Storyline. This helps speed things up for me.
Currently I just type it straight into the Storyline editor, if using a program such as Brackets makes it easer, then I will give that a try. Thanks for your sugestion
9 Replies
It would speed things up if you can share the storyline file (or a dummy version of it). But if you can't, then posting the javascript with some info about it might be fine.
I have attached the .story file, it is really bugging me to the point where i am thinking about starting the project from scratch to see if I can get it to work.
Sorry I forgot to add the issue is within the Review Notes scene
Think I found it.
There is a space in player in your print notes javascript code.
var playe r= GetPlayer();
Should be second line. As soon as I fixed this, both scripts worked.
Hi, GForces Training -- I see that Jerson is helping you here! I also wanted to add that although we don't provide support for JavaScript coding, it may be helpful to take a look at this document on JavaScript Best Practices. Please feel free to update if you are all set or if you're still looking for additional suggestions from the JS experts in the community!
Thanks Jason, such a simple thing and yet because I was getting frustrated I couldn't see it. I corrected the mistake and it works for me to. Thanks so much for your help.
Christie I will definitely take a look at that section, to help with further scripts that I use.
Glad to hear you found the assistance you needed, GForces! :)
Do you use any programs to edit your javascript or do you use the built in editor in Storyline?
I use Brackets. Its a free open source editor. What I like about it is that it colors the code so it's easier to read. Usually I code the javascript there and paste it into Storyline. This helps speed things up for me.
Currently I just type it straight into the Storyline editor, if using a program such as Brackets makes it easer, then I will give that a try. Thanks for your sugestion
This discussion is closed. You can start a new discussion or contact Articulate Support.