how do I make this dialog save as, scriptin filesytemobject

  • Follow


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


0
Reply Mats 8/28/2003 9:57:31 AM


0 Replies
241 Views

(page loaded in 0.394 seconds)

Similiar Articles:













7/16/2012 3:51:14 PM


Reply: