Can a Web Object's URL be a project variable?

May 30, 2016

Hey folks,

 

I'm working on a new course, and it's going to involve interactions with database pages on the internet. I'm going to load particular pages from a database into my slides using 'Insert Web Object'. Now, for my needs, there are a ton of different pages online that learners might find useful to look at within my course. Each of those pages on the interwebs has an identical URL, except that the last four characters of the link point to a particular page.

 

What I want to know is: has anybody figured out a way to load a user-defined variable into the URL of a Web Object? I.e., Can I somehow have the user punch four numbers into a numerical-entry form in my slide, then have the Web Object load: "http://www.BaseURL.com/%those_four_numbers%.html". Does this make sense? I hope this makes sense!

 

Thanks for your advice,

Dylan.

6 Replies
Brian Dennis

Matthew's post regarding javascript is a great starting point. Two points of note: 1) javascript isn't supported in the mobile player and 2) the javascript solution isn't for the timid as it's quite complex (and requires intermediate knowledge of javascript).

The core work is documented quite well:

https://community.articulate.com/discussions/articulate-storyline/webobject-and-storyline-variable

If your clients don't mind a second, popup window I create a trigger that executes open(link,"_blank") on click, where link is constructed by reading several project variables via player.GetVar() as shown in the thread above.

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