A Document Moving Store for Active Client Pages - How does the User correct an Error in a Previous Page? (Page 2 of 4 )
To correct an error in a previous page, the user has to use the Back button of the browser toolbar. After making the correction, do not click the Forward button to get to your latest page, as the change will not be reflected. Click the buttons on the pages that gave rise to the next pages.
You have to repeat any inputs you made along the line, as you are coming to your latest page. In this way the changes will be reflected. Once you load a new page, the previous page goes into the history object.
Any changes you make in the moving store can only be reflected in a loaded new page.
The Document Phase of my approach should be used for a short session with a maximum of about five pages. Well, this is my opinion. If you want a longer session, then you should use the Window Phase of my approach. In this phase there is more flexibility and the store remains in the master page, and so can be larger. In that phase you do not have to worry about the transportation time (from page to page) of the store.
Moving Store Example
The code for the master page is:
This is the First page.<br />
<button type="button" id="B1" onclick="openWrite()">Load Second Page</button>
var arrayStore = new Array(2);
arrayStore = "oneA";
arrayStore = "twoA";
var page2Doc = "<html>"
+ "This is the second page.<br />"
+ "<button type="button" onclick="showStoreValues()">Show Store Values</button>"
+ "<button type="button" onclick="loadThirdPage()">Load Third Page</button>"
The script has been put at the bottom of the BODY element so that it will be rendered last. Remember that in ACP you design your page so that the browser will render it as it arrives at the browser. You can still put the script (with the store) in the HEAD element of the master page if you have a good reason for doing so.