Click to See Complete Forum and Search --> : SaveAs question


karayan
05-31-2003, 09:49 PM
I have a piece of code that opens a window, loads an HTML file in it, and then tries to save it:

var myWin = window.open("test.htm");

myWin.document.execCommand("SaveAs");

This works fine, except, it opens up the SaveAs dialog and wants to save it as a plain HTML file, not a complete site. That means that it saves the HTML code, but not the images in its <img> tags. (The manual SaveAs menu selection in IE allows you to save as a complete site, HTML and images in a separate folder.) How do I make IE save it as a complete site?

Also, where can I find complete documentation on the execCommand() method?

Thanks.

George

diamonds
06-01-2003, 09:31 AM
you could have it save every single file individually, or save the entire sie to a .zip file. I php can take a list of files on the server and make a custom file, but you would need to check up on that by the experts at the PHP Forum!;)