In this and the next part of this five-part series, we look at the code for a simple example of Active Client Pages that uses Chrys’s Approach. We shall use this example to demonstrate how browsers respond to ACP. This example was described in the previous part of the series. To save time and writing space, I will not repeat the description here.
//code with Ajax to prepare the next page which is a window
</script>
</body>
</html>
Let us look at the skeleton code from top to bottom.
The Main HTML Tags
You have the <html></html> tags that embody everything. You have the head tags, which have JavaScript. You have the BODY tags, which have the HTML elements that are seen, plus a JavaScript.
The HEAD Element
The HEAD element has a JavaScript, which has two functions. The first function is precedeOrReturn(name). This function is the Backward Propagation code.
The next function is openWin1(). There is a button in the BODY element of the page. When this button is clicked, this function is called; it opens the next window in the session.
The BODY Element
The BODY element has the HTML elements that are displayed, plus a JavaScript.
Let us now look at the element contents in detail.