Articulate Storyline External links - Easy javascript file containing the links

It's a pain to update a course and re-upload it on your LMS just for a broken link.

Here's a way to solve this, the links in your Articulate file will be a javascript function - and this function, residing in an external file, will point to the correct external link URL. The external javascript file can be hosted on Github or other place. 

1. Change your external link to call a javascript function.

Add a trigger that will execute a javascript, write :

google()  . This will call the google() function in your external Javascript file.

2. Create your javascript file with the functions linking to the correct ULR.

Create a javascript file with the specifics of that function (just open notepad and paste that code in and save it with the .js extention)

function google() {
window.open(http://www.google.com);
}

Place this file on Gitup of other place, to get the full path to use to point to this file depend on where you put it. If place on Github, just upload your file and click on the RAW button to get the path.

3. Publish your course and update link to your javascript file.

Publish your course and you will be able to update your HTML code to link to your external javascript.

  • Open your publish story.html file
  • Insert the line of code that will link to the external file, just add a line calling the external javascript file - your code should look like this;

</script>

<script src="story_content/user.js" TYPE="text/javascript"></script>
<script src="story_content/story.js" type="text/javascript"></script>
<script LANGUAGE="JavaScript1.2" src="https://raw.githubusercontent.com/tpsgc-pwgsc/javascript/master/test.js" TYPE="text/javascript"></script>
</head>

 Change the part  ...http://raw.githubusercontent.com... to the link to your file.

You're done - Now you can go straight to Github to update the URL without having to re-upload anything to your LMS, and anybody can do it, even somebody with low technical skills can update broken links!

 

9 Replies
Ashley Terwilliger

Hi Kennethg,

I'm not sure I understand your question - as the information Jonathan shared here is for the purpose of  not having to  "re-upload it on your LMS just for a broken link." So with that in mind, it's specific to using an LMS. Since Javascript is not something I'm equipped to offer support around, I'll defer to others here in the community.