By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

Saving a file

P: n/a
Hi,
I wrote a script to generate links to some pictures that I need to
regularly update our site with. Is there a way to write a script that
just saves the pics to a directory on my pc so I dont have to right
click on every link and do a save picture as...? I can't link
directly to the pics from our site because our site is https and the
site the pics are on are http so the user gets the security warning
box every time a pic loads.

An example file location is :

http://www.senate.state.oh.us/senato...s_01_small.jpg
http://www.senate.state.oh.us/senato...s_02_small.jpg
http://www.senate.state.oh.us/senato...s_03_small.jpg
http://www.senate.state.oh.us/senato...s_04_small.jpg

and so on...
Thanks,

Jake G.

May 9 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Use an "offline browser" is one way, probably the best.
"Save as" in your browser might be another.
Loading the pics into a page, and then copying them from your cache
folder, is another.
I don't think JS will save files, for security reasons.

Jake G wrote:
Hi,
I wrote a script to generate links to some pictures that I need to
regularly update our site with. Is there a way to write a script that
just saves the pics to a directory on my pc so I dont have to right
click on every link and do a save picture as...? I can't link
directly to the pics from our site because our site is https and the
site the pics are on are http so the user gets the security warning
box every time a pic loads.

An example file location is :

http://www.senate.state.oh.us/senato...s_01_small.jpg
http://www.senate.state.oh.us/senato...s_02_small.jpg
http://www.senate.state.oh.us/senato...s_03_small.jpg
http://www.senate.state.oh.us/senato...s_04_small.jpg

and so on...
Thanks,

Jake G.
May 9 '07 #2

P: n/a
In article <11**********************@p77g2000hsh.googlegroups .com>,
Jake G <jg******@dps.state.oh.uswrote:
Hi,
I wrote a script to generate links to some pictures that I need to
regularly update our site with. Is there a way to write a script that
just saves the pics to a directory on my pc so I dont have to right
click on every link and do a save picture as...? I can't link
directly to the pics from our site because our site is https and the
site the pics are on are http so the user gets the security warning
box every time a pic loads.

An example file location is :

http://www.senate.state.oh.us/senato...s_01_small.jpg
http://www.senate.state.oh.us/senato...s_02_small.jpg
http://www.senate.state.oh.us/senato...s_03_small.jpg
http://www.senate.state.oh.us/senato...s_04_small.jpg

and so on...
Short answer is "no". For a link to be automatically saved, a specific
header need to be sent by the web server that tells the browser to
download instead of view them inline.
--
Sandman[.net]
May 9 '07 #3

P: n/a
On May 9, 2:57 pm, töff <t...@arcticcoconut.comwrote:
Use an "offline browser" is one way, probably the best.
"Save as" in your browser might be another.
Loading the pics into a page, and then copying them from your cache
folder, is another.
I don't think JS will save files, for security reasons.

Jake G wrote:
Hi,
I wrote a script to generate links to some pictures that I need to
regularly update our site with. Is there a way to write a script that
just saves the pics to a directory on my pc so I dont have to right
click on every link and do a save picture as...? I can't link
directly to the pics from our site because our site is https and the
site the pics are on are http so the user gets the security warning
box every time a pic loads.
An example file location is :
http://www.senate.state.oh.us/senato...s_01_small.jpg
http://www.senate.state.oh.us/senato...s_02_small.jpg
http://www.senate.state.oh.us/senato...s_03_small.jpg
http://www.senate.state.oh.us/senato...s_04_small.jpg
and so on...
Thanks,
Jake G.- Hide quoted text -

- Show quoted text -
Thanks Töff, that is a good solution with the cache!!!! I just did it
and it works fine. Thank you so much.

May 9 '07 #4

P: n/a
In comp.lang.javascript message <11**********************@p77g2000hsh.go
oglegroups.com>, Wed, 9 May 2007 11:53:09, Jake G
<jg******@dps.state.oh.usposted:
>I wrote a script to generate links to some pictures that I need to
regularly update our site with. Is there a way to write a script that
just saves the pics to a directory on my pc so I dont have to right
click on every link and do a save picture as...?
One assumes that you mean a script run in your browser.

IMHO, that's not the right tool. I've not done it myself, but I would
expect that Jscript/VBScript run by WSH, or a HLL exe, could do it. Ask
in the MS JS/VBS/WSH newsgroups.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3? Turnpike 6.05
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htmclpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.htmlnews:borland.* Guidelines
May 10 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.