Here is an example of a technique which I use, and which you might be able to adapt to work with disabling a button. I'm not sure if this technique will work for you, but I find it very effective in my development environment.
What I want the technique to do:
1.To present large amounts of text information, I display each paragraph in turn. It takes 46 seconds for this page (Page 1) to completely display.
2. In page 1 there is a hyperlink that takes the the reader to Page 2.
3. The reader returns to Page 1 by using the Previous Button.
4. On return to Page 1, I do not want the reader to have to wait for 46 seconds for the page to display again. However, I want to give the reader a chance to review the contents of Page 1 in the light of what was read on Page 2, before continuing.
How this works:
1. On the master page, I have a publication variable, Page_seen, which is initially set to 0. The Previous Button uses a Left mouse click to (a) set Page_seen = 1, before a Go to Page <Previous> action.
2. On any page where I have a hyperlink that sends a reader to another page, I have an On Show trigger that runs the script which appears below.
3. If Page_seen = 0, the paragraphs display in turn.
4. If Page_seen = 1, the paragraphs display simultaneously.
Note: In this sample, Page 1 and Page 2 are placed next to each other, whereas in reality they are separated. This has the effect of distorting the the use of the Next, Back and Previous Buttons after the reader returns to Page 1 from Page 2.
(My thanks go to Steve Henson for working with me to develop this technique.)
==================
if (Page_Seen == 0)
{
How_do.Show() //This is the first paragraph
wait(6)
Character_differentiation.Show() //This is the second paragraph
wait(9)
For_example.Show() //This is the third paragraph
wait(11)
Adding_speech.Show() //This is the fourth paragraph
wait(12.7)
These_socioeconomic.Show() //This is the fifth paragraph
Loading.Hide() // This is the timer/counter that indicates more paragraphs remain to be loaded.
wait(6)
Turn_page.Show() // This is an alert that the page has been fully displayed
}
if (Page_Seen == 1)
{
//These paras display simultaneously
How_do.Show()
Character_differentiation.Show()
For_example.Show()
Adding_speech.Show()
These_socioeconomic.Show()
Loading.Hide()
Turn_page.Show()
}
|