In this final part of a four-part series, I give you my enhancements to the AJAX approach to Active Client Pages. Before I conclude the series, I will introduce two other approaches to you. Keep reading to learn how to help your web pages load more quickly.
Before we end, let us look at a summary of the Ajax approach, which includes my enhancements. I will also introduce the other two approaches.
The Ajax approach is based on Chuck’s Works. The Ajax approach does not use a Frameset. This is the summary of the Ajax approach, including my enhancements.
The master page has the DIV element, which displays the pages.
While the user is working, data of any type, including program script code, is downloaded from the server in advance, without the knowledge of the user, by Ajax.
It is advisable to put the Ajax script at the bottom of the page. Each page can have Ajax script to download data in advance.
The downloaded data has to be stored in the JavaScript variables, JavaScript object properties and JavaScript arrays in the script in the HEAD element of the master page. The string form of a page, downloaded, should have only the HTML elements (sub strings) that would fit into a DIV element.
Pages are produced by script that is in the HEAD element of the master page or script in the BODY element of a page's downloaded content.
I have already written a three-part series on one of the ACP approaches. I call it the Script approach. In this approach, external JavaScript plays a great role. My own approach combines the Script approach, the Ajax approach and my enhancements.
For each of the three different approaches, you have my enhancements, which are features that are not in Vlad and Chuck’s works, according to what I read from their web pages. Vlad and Chuck did not give all the advantages I gave you in part one of the series. I have to give you modified versions of their works to suit these advantages. Each of them has done good work, which solves certain problems. I gave you a different and modified version of their results in order to solve more problems. I think they are still developing their results. So, they may develop their approaches in different dimensions.
Summary of ACP
Let us talk about ACP in general here. In this series, you have seen the Ajax approach. You will see the other approaches later in different series. This is the summary:
While the user is working, data of any form, including program script code and images, is downloaded from the server in advance, without the knowledge of the user.
This downloaded data has to be stored in some master page.
The pages are produced by the script that is in the master page or a downloaded script.
We have come to the end of the series. We have seen that Ajax can also be used for Active Client Pages. In other words, Ajax can solve more problems than those for which it was invented. We are thankful to Chuck for coming up with a method from which the Ajax approach is derived.