Page-by-page control of student navigation
August 7, 2009 12:00 AM
This is Technique 28 in my book Lectora 301 - Interesting Courses Using Variables & More.
I copied and pasted the solution from my book. It looks fine in the Edit window but when it posts there is a lot of extra white space. Can't get it out. Sorry.
There are times when you want the learner to progress through a course from the beginning to the end but you still want to allow navigation anywhere in the pages already viewed using a Table of Contents. While there is no way to do this directly using the TOC, you can bounce the learner back if they try to jump ahead.
Warning: This could get real annoying if the learner has already viewed the course and is taking it as a review.
Here are the actions. The variable _largest has an initial value of zero and is a retained variable.
Action Name | On | Action | Target | Value | Type | Condition |
get Page in title for calculations | Show | Modify Variable | _pg_diff | Var(PageInTitle) | Set |
|
calc page difference | Show | Modify Variable | _pg_diff | Var(_largest) | Subtract |
|
send them back if too more than 1 page jump | Show | Go To | Back |
|
| _pg_diff > 1 |
save largest page | Show | Modify Variable | _largest | Var(PageInTitle) |
| _pg_diff = 1 |
These actions return the learner back to the original page with no indication of what happened. If you want to let them know, then you can add this action before all the actions above. That way it uses the _pg_diff calculated on the jumped-to page, not the current page.
Action Name | On | Action | Target | Value | Type | Condition |
This action fires on coming back from “jump ahead” page | Show | Display Message | Std. Msg. Window | You may not jump ahead. |
| _pg_diff > 1 |
Discussions have been disabled for this post