In this article I will show you how browsers respond to Active Client Pages. In particular, we will focus on the question of whether different browsers respond to all the features of Active Client Pages as they should. Recall that browsers do not implement all the features in the HTML, JavaScript and DOM specifications. So we need to ask this question.
How Browsers Respond to Active Client Pages - Simple Example of ACP using Chrys's Approach (Page 3 of 4 )
Description
Let us look at a simple example here. The session begins with a master window. This master window has the possibility of producing only one window. The second window can produce two windows. One of these two windows can produce another window, while the other one can produce documents. The second document produced can produce a window. The following tree illustrates this:
Fig. 1.1 An ACP Tree
From the diagram, at level 0 you have the master window. At level 1 you have a window produced by the mater window. At level 2 you have two windows. At level 3 you have one window and two documents. At level 4 you have one window.
The window at level 0 (the master level) has a button. When this button is clicked, the window for level 1 will open. The window at level 1 can produce either one of two windows. It has two buttons; one will produce one of the windows. These are alternate windows. One of them is identified as page2_1, while the other is identified as page2_2.
Note that the two documents (Doc1 and Doc2) indicated are produced in sequence. The same window has to produce one before it produces the other. The windows are represented by small discs, and the documents (HTML) are represented by small circles. This is my way of representing the windows and documents. The use of a tree for ACP pages is just one of my additions to ACP. Note: Apart from the master page (first window), any other window or document is produced at the client's browser.
The window for page2_1 has a button, which, when clicked, would produce a window at level 3. This window of level 3 has a button that, when clicked, will display a value for a JavaScript variable residing in the master page, in an alert box.
The second document produced, at level 3, can produce a window. This document has a button that, when clicked, would produce a window at the fourth level. This document actually has two buttons; the other one will display the value of a JavaScript variable in the window of page2_2. The window at the fourth level also has a button; when you click this button, the value of a JavaScript variable in Doc1 is displayed.