orient_oasis
April 22nd, 2002, 12:41 AM
How can I use URLDownloadToFile function in javascript to download images or a web page to hard disk?
|
Click to See Complete Forum and Search --> : How can I use URLDownloadToFile function in javascript to download images or a web page to hard disk orient_oasis April 22nd, 2002, 12:41 AM How can I use URLDownloadToFile function in javascript to download images or a web page to hard disk? mrjeffs May 6th, 2008, 11:43 AM I don't think that this is for use from within an HTML/Javascript webpage, but the API that runs IE itself. In IE's Javascript implementation you can pop up a save dialog to save the CURRENT page using document.execCommand("SaveAs", "1", "htmlpage.txt"); Depending on security restrictions other files on the web could, in theory, be downloaded and saved using the same method AJAX uses to retrieve remote files, XMLHttpRequest, then save using the scripting.filesystemobject but it's all a bit clunky. PeejAvery May 6th, 2008, 07:55 PM Again, welcome to the forums mrjeffs. Please remember to make your posts more relevant. This thread is 6 years old. Keeping within that last few months would be more advisable. codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved. |