Welcome to the fourth part of a five-part series that shows how browsers respond to Active Client Pages. In this part, we complete the code for the simple example to be used to test the response of browsers to Active Client Pages, and then we look at the features in the example that we shall use to assess the browsers.
<button type="button" onclick="showValueIn2_2()">Show the Value in Page 2_2</button>
<button type="button" onclick="openWin4()">Open a Page 4</button>
//content of page 3 Doc1
var page4win = "";
//Ajax code to download next window
Let us look at what is inside the showValueIn2_2() function. You have just one statement inside the function; it is an alert statement. The following expression is the argument of the alert call:
This sounds good; however, for ACP programming today, I do not advice you to make calls from the document phase into the window phase and vice-versa. I will explain why in the next part of the series.
The openWin4() function opens a window. This window is at the fourth level in the tree in fig 3.1. The statements inside the function are normal statements for producing a window. The statements for producing a window are the same independent of whether you are producing the window from another window or a document. Likewise, the statements for producing a document are the same independent of whether you are producing the document from another document or a window. However, the statements for producing a document are not exactly the same as those for producing a window.