This is the second part of my four-part series, Active Client Pages – Ajax Approach. In this part of the series, we continue our discussion of the Ajax features we will need to use with ACP, and then we look at the principles of the Ajax approach.
Design your first page as you would normally for web design or web development. Let it not be long, so that it will download reasonably fast. This is your master page; it should not have a frameset. It has the store that keeps information necessary for the different pages.
All of the HTML contents of the first page are in a DIV element. The contents of the pages after the first one (second, third, fourth etc.) are downloaded in advance as texts (strings). When you want a new page, the content of the DIV element is replaced by one of the downloaded strings. When a string is downloaded, it is stored in the store.
The script in the HEAD element of the master page should be minimal. If you need more scripts, you can download them by putting an external script tag at the bottom of a page (the DIV) as follows:
I have given you the principles of the Ajax Approach. Let us stop here for now. We continue in the next part of the series.