Active Client Pages: More Questions and Answers on Chrys`s Approach
This is the third part of my series, "Active Client Pages: Chrys’s Approach." We continue to learn the roots that give rise to my approach to Active Client Pages. We will also answer more questions about the technique and its capabilities.
Active Client Pages: More Questions and Answers on Chrys`s Approach (Page 1 of 4 )
Can you access the HTML contents of the loading document?
Assume that you have a document and it loaded another document. Which one is now the current document? You are now at the current document. The question is, can you access the HTML contents of the document that loaded the current document? The answer is no. The DOM specification does not give us any clear method for doing this.
Can you access the variables and functions of the loading document?
No. The DOM specification does not give us a clear method for doing this.
The BODY element of the master page has the sentence “This is the first page.” It also has a line break element and a button. The onclick event calls the function show2(), which loads the second document (page2). We have seen this type of function before. The argument of the write() method is page2.
This argument (page2) is a variable in the master page having the content of the second document. This content is in a string. All of the entities in the string are escaped. Part of this content is:
The script should not be too long, so that the indicators showing the downloading process should quickly stop their manifestation. The good news is that while the downloading is taking place, the user would still be reading through the second page. For our example here, the script is very short. This is the forPage3.js script content:
function show3 ()
var pageThree = document.open();
pageThree.write("This is the third page.");
The script has a function. When you click the button on the second page, this function will be called, and it will load the third page.