karayan
06-25-2003, 03:49 PM
In trying to resolve prior issues with window.open(), I have come across this problem: I need to open a new window, and instead of feeding it with a URL [like window.open("file.htm");], I want to feed it an entire document string. That is, the entire HTNML code is in a string variable, so I want to pass that directly to open(), instead of a file URL.
<background problem>
The reason I am asking for this is that I need to open a file in a window, modify its HTML and THEN save the result as a web page through IE. The trouble is, IE saves the ORIGINAL file (source), NOT the modified document object. So, I thought I'd try reading the file into a string, modifying it and then passing the result to a wondow.open() in a new window. Then, the user would save the result as usual.
</background problem>
The only other way to solve my problem is to go to Visual Basic. I'd rather not learn YAL (=yet another language) :)
George
<background problem>
The reason I am asking for this is that I need to open a file in a window, modify its HTML and THEN save the result as a web page through IE. The trouble is, IE saves the ORIGINAL file (source), NOT the modified document object. So, I thought I'd try reading the file into a string, modifying it and then passing the result to a wondow.open() in a new window. Then, the user would save the result as usual.
</background problem>
The only other way to solve my problem is to go to Visual Basic. I'd rather not learn YAL (=yet another language) :)
George