Lightbox JS is a simple, unobtrusive script used to overlay images on the current page. It’s a snap to setup and works on all modern browsers.
A variation of Lightbox is ThickBox, which I’ve had better luck with since it allows more types of content beyond just images to be embedded in the modal window: images, HTML, and yes, even an Articulate Presenter course, when coupled with an iframe. (You can learn more in ThickBox – One box to rule them all.)
Here’s the description of ThickBox, which sounds a lot scarier and more technical than it really is:
The technology is actually simpler than you might expect to implement. You can see examples of our use of ThickBox on our free trials download page when you click the Select Download link next to the Articulate Presenter trial:
Note that a modal window “is a child window which requires the user to interact with it before they can return to operating the parent application,” so you’ll want to make sure your ThickBox window has a close button (you’ll see the code for this in my sample code below).
You can also click on any of the images in the New in Version 5 Presenter page to see more examples of the concept at work on our site (Lightbox in that case since they’re just images).
And that brings us to Presenter.
How to Launch an Articulate Presenter Course in the Same Window
Today stevebutton asked an interesting question in our forums:
any one had any success calling a Presenter project up in Lightbox or any of it’s variations?
Looking to call the Flash file as opposed to the web page.
Here’s how to do it:
- Download ThickBox (you’ll see JS files, a CSS file, and a loading GIF) and follow the implementation instructions on the ThickBox site.
- Upload the files to your Web server.
- Create or edit the HTML page where you want the link to your ThickBox presentation to live.
- Go to Articulate -> Player Template Builder -> Other -> Browser Window Settings and ensure your Presentation size is set to Scale presentation to fill browser window (this will also ensure it shrinks, as necessary).
- Publish your presentation using your modified player template.
- On your parent HTML page, insert an iframe that points to the player.html file in your Presenter published output folder.
- Make the iframe height less than that of the ThickBox code that calls in your presentation — this is the only way to ensure you won’t end up with an unsightly scrollbar in your ThickBox window (you’ll see in my example that I call in the ThickBox with a height of 400, but that the iframe has a height of only 340, which was how I got it to work sans scrollbar in Firefox 2, IE6, and IE7).
And here’s an example of this concept in action:
The obvious drawback of this method is that the content will likely need to be smaller to ensure it will be a reasonable size for your users with smaller resolutions (for the above demo, I set the ThickBox dimensions to 640×400), but if that’s not a problem for you or your users, then this is a great alternative to the usual pop-up window method of launching a course.
Download sample project files (560k zip file).
Enjoy, and thanks for the suggestion, Steve!
By the way, I’m sure some of you may ask how I embedded the demo right in this blog entry: After creating my parent HTML per the above instructions, I simply embedded it here via the EmbedIt WordPress plugin.