So in the btn trigger Jump to URL/File I would like to be able to assign this var %urlPath%
"Jump to URL" sounds like the browser is leaving the course and navigating to a new page. If you wanted to do this, Phil's suggestion should work, but you might want the JavaScript to read:
window.top.location = url;
Or, if you want to open a new window, use Phil's technique, window.open(url)
OR... You could use the course to jump to a slide containing the web page of the URL. You have two choices:
1 - Jump to slide
2 - Open Lightbox (a little cooler)
Both methods keep the learner squarely in the course and allow an uncomplicated return to the original slide using PREV, CLOSE Lightbox, or a button with a PREV trigger.
The web object would be an index.htm file with a JavaScript to open the specified URL either using window.location, or a frameset assigned to the URL. This method is a little more complicated, but the user interface is more intuitive.
But sometimes... opening a new window is the right thing to do.
6 Replies
I would also like the be able to use the global vars on btn's also.
So in the btn trigger Jump to URL/File I would like to be able to assign this var %urlPath%
Any help???????
Thanks
B
You cannot assign a variable to a jumpto url you could use javascript to pick up your variable and then open a website
this isf you want a new window
Thanks for your response Phil. can you provide any insight to my OP?
Setting a global var for use in loading a external video via the embed/iframe code?
B
sorry I dobt know if you can dynamically load this way, seems and odd way to do it
"Jump to URL" sounds like the browser is leaving the course and navigating to a new page. If you wanted to do this, Phil's suggestion should work, but you might want the JavaScript to read:
window.top.location = url;
Or, if you want to open a new window, use Phil's technique, window.open(url)
OR... You could use the course to jump to a slide containing the web page of the URL. You have two choices:
1 - Jump to slide
2 - Open Lightbox (a little cooler)
Both methods keep the learner squarely in the course and allow an uncomplicated return to the original slide using PREV, CLOSE Lightbox, or a button with a PREV trigger.
The web object would be an index.htm file with a JavaScript to open the specified URL either using window.location, or a frameset assigned to the URL. This method is a little more complicated, but the user interface is more intuitive.
But sometimes... opening a new window is the right thing to do.
Sam
This discussion is closed. You can start a new discussion or contact Articulate Support.