JavaScript
  Home arrow JavaScript arrow A Document Moving Store for Active Client ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

A Document Moving Store for Active Client Pages
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 2
    2009-07-24

    Table of Contents:
  • A Document Moving Store for Active Client Pages
  • How does the User correct an Error in a Previous Page?
  • Explanation of the Script in the Master Page
  • The page2Script.js Script

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    A Document Moving Store for Active Client Pages


    (Page 1 of 4 )

    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.

    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.

    More JavaScript Articles
    More By Chrysanthus Forcha


     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek