Forum Discussion

DonnaKane's avatar
DonnaKane
Community Member
9 years ago

Can someone please look at my javascript?

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?  

  • MikeTobias's avatar
    MikeTobias
    Community Member

    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.

    • DonnaKane's avatar
      DonnaKane
      Community Member

      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!

       

  • 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.

  • 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.

  • DonnaKane's avatar
    DonnaKane
    Community Member

    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.

  • Borg_Cube's avatar
    Borg_Cube
    Community Member

    Would you please consider implementing support for Python-scripts as well?