Click to See Complete Forum and Search --> : automating view source of another window


donovan01748
12-09-2003, 09:20 PM
I am writing a js app which processes spreadhseet data. I know js has no ability to save data to a local file, but I have an idea to mostly get around this. However, I am unsure if my idea will work and have so far been unable to put together the necessary code.

So far I have succesfully:
1) Processed my data
2) Ouput my data to a new blank IE window. Code follows:
var win = window.open("enchilada_output.html","",",");
with (win.document) {
open("text/html", "replace");
writeln(new_last_output);
close();
}

If in the new window I select "View, Source" I get a Wordpad document the which I can save locally, with all my tabbed formatting intact. However, is there a way to do this from my script running in a framed doc from the main window? The new IE window that pops up is void of formatting. I would also like to have the new IE window close once the Wordpad doc is up. Any ideas or code snipets very much appreciated! Thanks.

Donovan

donovan01748
12-10-2003, 04:21 PM
no one can touch this one???
:( :(