how do I make this dialog save as, scriptin filesytemobject

M

Mats Lundgren

Hi,
I got this function to load a.txr or a *htm file in an iframe

function LoadFile()
{
CommonDialog1.ShowOpen();

var fileName = CommonDialog1.FileTitle;
var fObj = new ActiveXObject("Scripting.FileSystemObject");

var f = fObj.OpenTextFile(fileName);
var fileContents = f.ReadAll();

f.Close();
var iframeWin = window.message;
iframeWin.document.write(fileContents);
}

but I want one that saves the iframe contens too, but I can´t figure out how
to do it, plz help

Thanks
Mats
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top