Home arrow JavaScript arrow Page 3 - Active Client Pages: Chrys`s Approach
JAVASCRIPT

Active Client Pages: Chrys`s Approach


If a user is burdened with a slow Internet connection, he will find that it takes time for a web page to be displayed (downloaded) to his client computer. Now there's a way to arrange it so that only the first page of his requested web site would take a long time to be downloaded; the rest of the pages would come very fast. This can be a real advantage. If you want to learn more about this approach, referred to as Active Client Pages, keep reading.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
June 26, 2009
TABLE OF CONTENTS:
  1. · Active Client Pages: Chrys`s Approach
  2. · Active Server Pages and Active Client Pages
  3. · Advantages of Active Client Pages
  4. · DOM Properties and Methods to Use

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Active Client Pages: Chrys`s Approach - Advantages of Active Client Pages
(Page 3 of 4 )

Any information stored at the server and its analysis can be presented fast to the user using ACP, independent of whether the Internet connection is fast or slow. Only the first page may take some time to be downloaded through a slow Internet connection.

Web pages are becoming voluminous because authors are putting a lot of script into them. This leads to long download times. With ACP, the download will no longer be slow.

If you understand your scripting language very well, you will pay less for hosting, since the analysis will now be done by your script at the client, and not by some program at the server.

ACP frees the server from work, thus increasing the overall speed of the World Wide Web. At the limit, if every client uses ACP, a client will not have to wait too long for the server to serve other clients before it is served, since the processing will be done at the client and not at the server; in other words, the server spends less time serving a client. One of the aims of N-Tier systems is to free the server from work. ACP also serves that purpose.

I have given you these advantages, as seen by me.

The Secret of Active Client Pages

The secret of Active Client Pages lies in the fact that after the first page has been downloaded by the browser, other pages or data are downloaded in advance in the background, without the user knowing, and stored in an HTML master page (or frameset). This master page (or frameset) is the first page downloaded. By the time the user would have finished reading or otherwise dealing with the first page, the information for the next few pages would have arrived at the browser. When the user needs the next page, the browser displays it from the store (master page).

My Approach

My approach is a combination of the Script and the Ajax Approaches plus enhancements I've added. I also made enhancements to the Script and Ajax Approaches. The enhancements I made with my approach (over the Script and Ajax Approaches) are that I've make the Back and Forward buttons of the browser able to work, and I show the author how to change the content of the pages that are behind or ahead of the present page.

With my approach, you can use the Back and Forward buttons to go to the different pages. With my approach, the user can see one page and then have content in any of the other pages changed consciously or unconsciously.

With my approach, data can also be downloaded in advance, maintained in a document (page) and used to produce the next page.

There are two phases to my approach. I call the first phase the Document Phase. In this phase, a user session consists of a series of HTML documents. Each of these documents is a page. It is the existence of these documents that makes the browser enable its back and forward buttons.

I call the second phase the Window Phase. In this phase, a user session consists of a series of browser windows. Each of these windows can have a series of HTML documents. All of the features of the first phase can be in a window (of the second phase). A user session for the second phase is expected to be longer than the user session for the first phase.

As we go on in the series from now, know that we shall be dealing with the document phase. When we come to the window phase I will inform you. In either phase, JavaScript can do calculations, for example, financial calculations.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



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