Norm White
11-19-2003, 07:21 PM
The application that I am trying to develop is a web-crawler written in JavaScript. The top module called JSBrowse.html defines two frames: an upper one called toppart, and a lower one called bottompart. Toppart.html in turn defines two frames: one called leftpart and one called rightpart. (I would have atached all 4 modules, but I don't know how to attach more than one module, so I chose rightpart.html.)
Leftpart shows the current www page that you have crawled to.
Rightpart contains a button that takes you to the next page in what will eventually be a pushdown list.
Bottompart scans each page for the presence of keyword, and also shows the dom structure of the document.
In rightpart I use this statement to update the URL of leftpart: parent.frames('leftpart').window.document.URL=document.form1.text1.value;
THE PROBLEM IS: The DOM tree that is displayed is the tree of my original html page (i.e., leftpart). What I want is the DOM tree of the current content.
I own 5 books on JavaScript including "HTML Black Book", "JavaScript: The Complete Reference", and 3 others, and I have not found the answer to my question.
I could sure use a clue, or ideas to solve this problem.
Thanks,
Sincerely
Leftpart shows the current www page that you have crawled to.
Rightpart contains a button that takes you to the next page in what will eventually be a pushdown list.
Bottompart scans each page for the presence of keyword, and also shows the dom structure of the document.
In rightpart I use this statement to update the URL of leftpart: parent.frames('leftpart').window.document.URL=document.form1.text1.value;
THE PROBLEM IS: The DOM tree that is displayed is the tree of my original html page (i.e., leftpart). What I want is the DOM tree of the current content.
I own 5 books on JavaScript including "HTML Black Book", "JavaScript: The Complete Reference", and 3 others, and I have not found the answer to my question.
I could sure use a clue, or ideas to solve this problem.
Thanks,
Sincerely