Active Client Pages: Completing the Code for a Browser Example
The aim of this five-part series is to show to what extent a major browser responds to ACP. ACP is a new technology. In order to understand how a browser responds, we need an example to use to test the browser. We need to understand the example first. In this third part of the series I complete the explanation of the example.
Active Client Pages: Completing the Code for a Browser Example (Page 1 of 4 )
It is good to have the tree in mind as you read this article. This is the tree.
Level 2 Windows
We have looked at the level 0 window, which is the master page. We have also looked at the second page, which is the window at level 1. There are two windows at level 2. Let us look at the window source and contents here.
Remember in ACP I describe each window or document as a page. The two pages at level 2 are in the Perl files, called sendPge2_1Str.pl and sendPge2_2Str.pl at the server. We look at them in this section.
The precedeOrReturn(name) function is the Backward Propagation Code. Ideally this code should be in every ACP window. I explain the operation of this function in the previous part of the series. The other function is openWin3Win(). There are two statements in this function. The first one opens a new window and the second one writes content to the opened window. The content is held in the page3Win variable. The content was assigned by the Ajax code.
Let us look at what is inside the BODY element of the above code. You have some text, a line break element and a button. When the button is clicked, the Win3Win() function, which we have seen, is called.