Okay, here's my question.
I have a library of documents that is broken up first by subject, and then each subject is broken up into sections (each section is a separate HTML document). I want a way for the user to click on a button and have all the sections in a subject print. Is there a way that this can be done.
In experimenting, I've come up with loading the separate sections into temporary windows, grabbing the document.body.innerHTML from those and document.write-ing it to the main document. This produces a full document with all the sections, but I can't get that document to print after it's been generated. For some reason window.print() after all the document.writes doesn't work.
Any ideas or thoughts on how this could be done are greatly appreciated. Feel free to tell me a better way to consolidate separate HTML documents as well if that's out there.
Thanks very much,
Michael
e-mail: dante@orst.edu
I have a library of documents that is broken up first by subject, and then each subject is broken up into sections (each section is a separate HTML document). I want a way for the user to click on a button and have all the sections in a subject print. Is there a way that this can be done.
In experimenting, I've come up with loading the separate sections into temporary windows, grabbing the document.body.innerHTML from those and document.write-ing it to the main document. This produces a full document with all the sections, but I can't get that document to print after it's been generated. For some reason window.print() after all the document.writes doesn't work.
Any ideas or thoughts on how this could be done are greatly appreciated. Feel free to tell me a better way to consolidate separate HTML documents as well if that's out there.
Thanks very much,
Michael
e-mail: dante@orst.edu