Javascript does not export

Jan 22, 2015

Maybe I am saying this incorrectly but I havn't found an answer so hopefully I can get some from posting.

My storyline file was working properly with the javascript I put in. Then randomly it stopped. It didn't matter what code I put in, the .html will not execute any javascript whatsoever. I have updated Storyline and flash, still nothing.

I am using a dropbox public folder to test my exports.

Is it possible that there is a setting somewhere that disables javascript when I export? Is there something I can do to get it working again or do I have to re-create my storyline file?

9 Replies
Caitlyn Myers

Fixed...

When it comes to scripting, I have no idea what I am doing. It's all trial and error. I will leave this here in hopes that it helps someone in the future.

In my draw from questions scene I found some old javascript that I was trying to use.

window.location.pathname.lastIndexOf("/") + 1) = "/stuff went here/stuff went here/story.html";

apparently this code will cause all of the javascript in the entire file to stop working. I am not sure if that goes for any javascript that is improperly used or not.

Jackson Hamner

Maybe you already figured it out, but I think something is wrong with the parentheses, there is one just hanging without a beginning parentheses

window.location.pathname.lastIndexOf("/") + 1) = "/stuff went here/stuff went here/story.html";

So you need to remove the last one I think? so it would be something like

window.location.pathname.lastIndexOf("/")+1 = "/stuff went here/stuff went here/story.html";

If this is wrong and you already figured out the error I would love to hear the solution, I really like learning more about javascript when I can :)

This discussion is closed. You can start a new discussion or contact Articulate Support.