rmirro
08-26-2003, 04:56 PM
Hello everyone. I'm having a problem writing html to a popup window via document.writeln.
More specifically, my code works if I initially load an HTML file in the popup window. If I load a PDF file in the popup, I seem to no longer be able to use document.writeln to manipulate the contents of the window.
Basically the idea is that many links get generated on one html page. Some of the links point to an HTML file while others point to PDF files.
If the user clicks a link, the popup window opens (ONLY if it's not already open), then loads the proper URL.
If the user clicks another link on the main html page while the popup is still open, I simply reuse the open window, generate a "loading..." message, then load the new URL in the existing popup.
Once I load a PDF in the popup, I can no longer load any other documents in that popup using the logic I have.
Is this a know issue?
I have a workaround which simply closes/re-opens the popup if a PDF is loaded, but I don't like that approach.
I can provide the code I'm using if that'll help. Just let me know.
Thanks!
-Bob
More specifically, my code works if I initially load an HTML file in the popup window. If I load a PDF file in the popup, I seem to no longer be able to use document.writeln to manipulate the contents of the window.
Basically the idea is that many links get generated on one html page. Some of the links point to an HTML file while others point to PDF files.
If the user clicks a link, the popup window opens (ONLY if it's not already open), then loads the proper URL.
If the user clicks another link on the main html page while the popup is still open, I simply reuse the open window, generate a "loading..." message, then load the new URL in the existing popup.
Once I load a PDF in the popup, I can no longer load any other documents in that popup using the logic I have.
Is this a know issue?
I have a workaround which simply closes/re-opens the popup if a PDF is loaded, but I don't like that approach.
I can provide the code I'm using if that'll help. Just let me know.
Thanks!
-Bob