So are nothing I have found on the web addresses this unique circumstance so I'll ask now.
I have an empty DIV which is working as a "container" to hold and display an 'external' HTML document.
<div id="page-content-wrapper" style="border: medium solid #000000; height:660px">
<!--Loaded content goes here-->
</div>
In the Sidebar of this page is a list of documents (HTML docs) from which the user may pick.
There is Javascript to load the selected 'external' HTML document into the DIV (page-content-wrapper).
The SidebarItemClick method code for that is:
function MenuClick(doc) {
var Tutorial = doc;
var DisplayObj = "<object id='ThisObj' type='text/html' data='" + Tutorial + "' style='min-width:100%; min-height: 101%; overflow: hidden'></object>";
document.getElementById("page-content-wrapper").innerHTML = DisplayObj;
}
That works fine. The document is displayed nicely on the webpage.
NOTE: As can be seen in the code, I am not using iFrame for a variety of reasons - mostly because my boss said "NO IFRAME".
NOTE2: Even when I can physically see the 'external' HTML document being displayed on the webpage within the DIV (page-content-wrapper) - when I examine the Page Source at that moment in time, the text of the 'external' HTML document does not appear - although the
Now I want to put together some Javascript to enable the user to Search for text within that 'external' HTML document and scroll (if necessary) the 'found' text to a visible part of the webpage.
As I said at the beginning, nothing I have found so far on the web seems to address this situation so I hope someone has a workable approach.
Your advice/suggestions will be greatly appreciated.
Thanks