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.
The script has the openWin3Doc1() function. There is a button in the BODY element. When this button is clicked, this function is called. This function opens a new window that houses the two documents.
The first statement of this function opens a window. The next statement writes the content to the window. We want two HTML documents in this window. The content sent is automatically the first document. The next document will be produced in this window by this first document. The page3Doc0 argument holds the initial content of the first window, which is the first document.
Look at the tree of fig.3.1. Level two has two windows. The file for the window on the left is sendPge2_1Str.pl, while that for the window on the right is sendPge2_2Str.pl. We have discussed the contents of these two files.