navigate to a page name stored in a var
September 4, 2007 12:00 AM
I just fixed something similar with multiple Help pages in a course template I'm working on... There's a "return to lesson" button on multiple Help pages, which takes the learner back to any location they were in prior to visiting the Help pages.1. Set up an action group that the FAQ button will call, then gray out the FAQ button when on the FAQ pages to keep the action group from being called again...2. Name the action group something like, "FAQ button actions"3. Name the first action, "store current page location"Action: Modify VariableTarget: varPageBookmark (you'll need to make this as a custom variable)Value: javascript:location.hrefModification Type: Set Variable Contents4. Name second action "go to FAQ pages"Action: Go ToTarget: Chapter, Section, or PageName: whatever your FAQ page 1 is titled 5. On your FAQ button, run the above action groupthen be sure that the FAQ button is grayed out or made inoperable while in the FAQ pages.6. On your FAQ pages, have a button with the following actions:On Click: Action: Go ToTarget: Web AddressWeb Address: VAR(varPageBookmark)That should do it; the learner will now be able to return to any place they were in the lesson prior to visiting the FAQ pages.
Discussions have been disabled for this post