Home arrow JavaScript arrow Page 4 - A Document Moving Store for Active Client Pages

A Document Moving Store for Active Client Pages

Welcome to the fourth part of a twelve-part series that explains how to create Active Client Pages. In this part of the series, I explain the meaning of a moving store and how you come up with one.

Author Info:
By: Chrysanthus Forcha
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
July 24, 2009
  1. · A Document Moving Store for Active Client Pages
  2. · How does the User correct an Error in a Previous Page?
  3. · Explanation of the Script in the Master Page
  4. · The page2Script.js Script

print this article

A Document Moving Store for Active Client Pages - The page2Script.js Script
(Page 4 of 4 )

The external JavaScript tag for this script is at the button of the second page. The script has the function to display the values of the store in the second page. It has the page content for the third page. It also has the function to produce the third page. This is the script:


function showStoreValues()


alert('Second page 1st store value is ' + document.getElementById('S2').rows[0].cells[0].innerHTML);

alert('Second page 2st store value is ' + document.getElementById('S2').rows[1].cells[0].innerHTML);



var page3Doc = "<html>"

+ "<head>"

+ "</head>"

+ "<body>"

+ "This is the third page."

+ "</body>"

+ "</html>";


function loadThirdPage()


var pageThree = document.open();





The showStoreValues() function displays the values in the store in the second page. This function is called when the first button of the second page is clicked. It uses two alert statements to display the value of the store. DOM features are used here.

After this function in the script, you have the string, which has the HTML content of the third page. Next in the script, you have the function that produces the third page. This function is called when you click the second button of the second page.

That is it. That is an example of a moving store. In the next part of the series, we shall look at a simple example of the Document Phase of Chrysís Approach. In that example we shall use Ajax.

DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials