![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | There's a Javascript method of invoking the Save As dialogue box from a web page browsed in IE. It uses document.execCommand('SaveAs',null,'filename.htm') . However this causes a "Save HTML Document" dialogue box to open which does not have the ability to "Save as type" "Web page, complete" ie complete with an images folder. I wish to emulate the IE browser File > Save as... facility which opens a "Save Web Page" dialogue box which does have the "Web page, complete" option. Is there another form of the document.execCommand which will open the "Save Web Page" dialogue box rather than the "Save HTML Document" dialogue box? The principle is shown at http://www.codefoot.com/javascript/s...ke_saveas.html |
|
| | #2 (permalink) |
| Civilians | "carl" <carltusler@onetel.com> wrote in message news:1119438895.668549.23400@o13g2000cwo.googlegro ups.com... > There's a Javascript method of invoking the Save As dialogue box from a > web page browsed in IE. It uses > document.execCommand('SaveAs',null,'filename.htm') . However this causes > a "Save HTML Document" dialogue box to open which does not have the > ability to "Save as type" "Web page, complete" ie complete with an > images folder. I wish to emulate the IE browser File > Save as... > facility which opens a "Save Web Page" dialogue box which does have the > "Web page, complete" option. Is there another form of the > document.execCommand which will open the "Save Web Page" dialogue box > rather than the "Save HTML Document" dialogue box? The principle is > shown at http://www.codefoot.com/javascript/s...ke_saveas.html > Perhaps you are seeing the "Save HTML Document" dialog box because you specified an HTML file type in the command: 'filename.htm'. You might try leaving the vValue option empty, or specify ".mht" for the option. Take a look at http://msdn.microsoft.com/library/de...xeccommand.asp George King G.E. King Marketing |
|
| | #4 (permalink) |
| Civilians | On 23 Jun 2005, carl wrote: > George, thanks for the reply. Leaving the value empty still doesn't > give me the "Save Web Page" dialogue box, and ".mht" isn't a suitable > format for us. So the search for a solution to my problem continues... > regards, Carl As an alternative, you could write a batch file that creates another batch file on the fly to run wget with the appropriate switches to fetch the page in question and all of the images linked to from that page. That might work for you. I have used one batch file to fetch my home page and everything it links to (and, recursively, everything linked to by what it links to) that is in my own directory in order to mirror the entire public part of my web site. With ": " prepended to all lines. Those without ": " are wrapped following a trailing space in the previous line. Only the last line is really significant. The others just change the palette and clear the screen to a nice readable bright white on red so I can see the progress at a glance. "p.bat" sets the path to make the other utilities accessible. : @echo off : call c:\WINDOWS\p.bat : c:\utils\vga pal c:\utils\win2.pal : call cl : : @echo on : G:\utils\Win\wget -r -I /~af380 -nH --cut-dirs=1 http://www.chebucto.ns.ca/~af380/index.html It even creates subdirectories as necessary. Switches may vary between the version you get and the version I have. The download for the version I have has been visited by the 404 Fairy. Other wget URLs in my bookmarks include: "GNU wget - GNU Project - Free Software Foundation (FSF)" http://www.gnu.org/software/wget/wget.html "rootr.net : man : wget" http://rootr.net/man/info/wget -- Windows is *not* a "Toy OS". /me desperately trying to hide the URL for the screenshot of my desktop http://www.chebucto.ns.ca/~af380/tem...un-22-2005.gif |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Closing a Dialogue Box | Dane Cooper | Microsoft Applications | 1 | 08-10-2005 20:00 |
| Re: PowerPoint Dialogue Box | Luc | Microsoft Applications | 1 | 06-07-2005 12:00 |
| invoking an add-in from a macro? | JurgenBrea | Microsoft Applications | 2 | 04-28-2005 20:00 |
| [News Feed] Caroline Kennedy tells Bush to stop invoking JFK (AFP) | Forum Mouse | News Articles | 0 | 10-27-2004 18:00 |
| Invoking Terror Threat, Putin Tightens Grip on Power | cato2 | Point/Counterpoint | 5 | 09-24-2004 03:27 |
![]() | ![]() | ![]() |