Can someone please look at my javascript?
Mar 25, 2016
By
Donna Kane
Hi all! I've been reading and learning from these discussions for a long time. Without even knowing it, your help has saved me on many occasions! Thanks!
I've used Stephanie's javascript in a Storyline 2 project to email (I'm not using the print function) and it has worked beautifully until I made additions two days ago. I know little to nothing about javascript, and one of our I.T. guys has been helping me as much as he can. Would someone please take a look at it to see what's wrong?
9 Replies
Hi Donna!
JavaScript is not something I'm good at nor is it something I can support. Hopefully someone in the community will be able to pop in and take a look to assist.
For anyone else that may run across this thread:
Articulate Storyline supports JavaScript triggers, letting you extend the functionality of your courses. Although we don't provide support for JavaScript coding, this article will help when you're developing JavaScript triggers in Storyline.
Try changing all of the double quotes to single quotes in your mailto variable string. That seemed to do the trick here. Maybe you can't mix single and double quotes in js?
Also, try using window.location.href=mailto_link; instead of win=window.open(mailto_link,'emailWin'); as that doesn't open up an extra empty browser tab. Just test and make sure that works for your environment.
Mike,
Thanks so much for the input! We tried just about everything, then we realized that it WAS an issue with the quotation marks. I really appreciate you taking the time to help!
Glad that fixed it! You're very welcome!
Glad that Mike was able to assist you Donna.
I wanted to mention that replying to the forums attaches your signature. You are welcome to pop in and edit your response if needed.
Thanks for the heads up, Leslie! You people are awesome!
No problem Donna. Mike did all the work here :)
I did share your sentiments with the team though - it is Monday after all.
Would you please consider implementing support for Python-scripts as well?
Hi, Tommy.
Thank you for reaching out!
You are welcome to share your suggestions through this feature request form, and if it makes it into our feature roadmap, we'll make sure to update you!