karayan
06-07-2003, 06:52 PM
This is a challenging problem.
With my Javascript, I am oponing another window and load a certain HTML file (using IE). Then, the Javascript modifies the HTML on that window. I want the user to save the window using the SaveAs command from the menu, so the page can be saved as a Web page (with images, etc.) The trouble is, when the user selects File --> Save As, IE saves the original HTML file, not the modified HTML.:(
How can the user save the modified code?????
I think that the execCommand(SaveAs) will nit work either. (Plus which, it does not save the whole web page -- just the HTML file).
Here is my current thnking, but feel free to give me another solution:
If I can specify the document HTML, (maybe through innerHTML???), can I send that document (already modified)to the new Window (without opening an HTML file)? And if the user saves that, I asume that the modified code will be saved?
This is really a sticky point that I must overcome.
Thanks.
George
With my Javascript, I am oponing another window and load a certain HTML file (using IE). Then, the Javascript modifies the HTML on that window. I want the user to save the window using the SaveAs command from the menu, so the page can be saved as a Web page (with images, etc.) The trouble is, when the user selects File --> Save As, IE saves the original HTML file, not the modified HTML.:(
How can the user save the modified code?????
I think that the execCommand(SaveAs) will nit work either. (Plus which, it does not save the whole web page -- just the HTML file).
Here is my current thnking, but feel free to give me another solution:
If I can specify the document HTML, (maybe through innerHTML???), can I send that document (already modified)to the new Window (without opening an HTML file)? And if the user saves that, I asume that the modified code will be saved?
This is really a sticky point that I must overcome.
Thanks.
George