Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: incrediBILL
I'd like to #include the complex, bulk HTML from a file into each page, so that I can easily change the bulk HTML in one place and have it "appear" when the other pages get loaded into a browser.
The bulk HTML has seven <div's> in it, some with tables and text and images, etc.
I cannot use PHP or server-side scripting to php-include etc, because this has to run offline.
I tried using:
<object type="text/html" data="myFile.htm"></object>
but it doesn't place the clean HTML cleanly into the page -- it appears in some kind of scrolling div or something.
I also tried using the DOM to create a text node, but couldn't get the div's in the bulk file to actually appear in the page.
What I see now when I look at the page source in the browser is:
whereas before, when it worked, I saw the expaned foo.htm inline in the page code.