Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 06-22-2005, 12:00   #1 (permalink)
carl
Civilians

 
Default Invoking Save As dialogue box

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

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 06-22-2005, 16:00   #2 (permalink)
George King
Civilians

 
Default Re: Invoking Save As dialogue box


"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


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-23-2005, 08:00   #3 (permalink)
carl
Civilians

 
Default Re: Invoking Save As dialogue box

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

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-23-2005, 16:00   #4 (permalink)
Norman L. DeForest
Civilians

 
Default Re: Invoking Save As dialogue box


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

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 21:05.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.98007 seconds with 19 queries