Hi folks —
I am wanting a button handler to open a file and place that file’s HTML content into a named div.
myNamedDiv.innerHTML = {the contents of a data file}
I have managed to create HTML files and load these into iframes >>
iframeName.location = dataFileName.html;
Conserving memory usage is one of the desirable aspects of using HTML data files. Let’s say I have 10 buttons and each button represents 3 or 4 pages of HTML content … I’d like to avoid having 30 to 40 pages of content consuming memory and only load the target content on demand.
IE compatibility is driving my desire to use divs instead of iframes.
At this time … I am only working with client side JavaScript. I hope to groove out the client side and migrate to server/client in the future. Unfortunately, I am still a novice and have no server side experience.
Is this crazy? >> Create an input iframe that is hidden and open data files into the iframe and then copy iframe content into the named div?
All this because of security constraints, lack of data file methods within ECMAScript, and iframe inconsistencies between IE and FireFox.
Thanks in advance for all suggestions and guidance.
— Tom