Will Storyline be able to determine in what URL address it is currently uploaded/installed? I'm asking because I wish to trigger an action based on a T/F statement which simply asks if the current URL ==example.com.
Hi Matthew, when I ran this in the correct domain it returned a True value, but I think only because of the third line that set it to true, not because it recognized the domain. When I run the same script in another domain, it still returned True, when False should have been expected.
I'm not really sure but the only change I consciously made was getting rid of the extra space in line 2 between ) and {. It's now .com"){. I don't know if this makes sense or it's this fickle. Nevertheless I'm glad the script works. It now returns a False value in the wrong domain. Thanks again.
10 Replies
Great! Thanks Matthew.
Glad that Matthew was able to assist you here Celito :)
Hi Matthew, when I ran this in the correct domain it returned a True value, but I think only because of the third line that set it to true, not because it recognized the domain. When I run the same script in another domain, it still returned True, when False should have been expected.
The variable Domain is however refreshed.
Is there something I am missing?
HI Matthew, I got it to work. Got a little careless with a few details. Sorry for asking too quick. Thanks a lot.
I'm not really sure but the only change I consciously made was getting rid of the extra space in line 2 between ) and {. It's now .com"){. I don't know if this makes sense or it's this fickle. Nevertheless I'm glad the script works. It now returns a False value in the wrong domain. Thanks again.
Thanks for the update Celito and glad to hear you're back up and running!
Hi Matthew,
What trigger do you give to your java script?
I mean what is the detail of the trigger to restrict the domain?
Thanks a lot
I see. I mean what I have to write in the WHEN field and other fields of the trigger?
This post was removed by the author
Hi Neda,
Here's a file of the routine Matthew generously helped me with. I hope it helps.
Celito
Thanks Celito, it helps me a lot.
This discussion is closed. You can start a new discussion or contact Articulate Support.