Home arrow JavaScript arrow A Document Moving Store for Active Client Pages
JAVASCRIPT

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
TABLE OF CONTENTS:
  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
SEARCH DEVARTICLES

A Document Moving Store for Active Client Pages
(Page 1 of 4 )

The Initial Store for the Document Phase

The initial store comes with the master page. It consists of JavaScript variables and/or JavaScript arrays and/or JavaScript object properties. It is good to put this in a script at the bottom of the master page. You should design any of your pages in ACP so that it is rendered as it arrives at the browser.

The store has data that is needed for all the pages in the session. It can also have HTML pages in string forms.

The Moving of the Store

Assume that you have your master page in front of you. The next page to be loaded (created from the master page), should have containing HTML elements to hold the values of the store in the master page. An Input Text element can hold the value of a variable. A table element can hold the values of an array. An HTML object can hold the values of a JavaScript object (I hardly use this last feature).

The value for the display properties for these HTML elements should be "none;" in this way they will not be displayed and they will not occupy space. Code in the master page will copy the values from the master page to the loaded page. In this way you move the store (indirectly) into the next page (document). In a similar way, you can move the store from the second page into the third page; then from the third page into the fourth page; and so on.

Why move the Store?

A loaded page cannot access values in any previous page. This means that no loaded page can access values in the master page. On the other hand, a page can access HTML contents in the immediate page that it has loaded. This is why the store has to be moving as new pages are loaded.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- 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 
Support 

Developer Shed Affiliates

 




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