Re: JScript question
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Thu, 21 Sep 2006 13:00:54 -0400
markpatricksmith@xxxxxxxxx said the following on 9/21/2006 12:12 AM:
I know this is probably a pretty basic question. I fly F-16's in the
ANG and we are trying to simplify our flying publication process.
All I want to do is take a bunch of file locations off the web (see
below) and write a script that downloads all of them and puts them in a
specified folder. We actually have about 50 of these to do. So
instead of having someone go to each page and click File Save As they
can just click one button to automate the task.
I would appreciate a code example or a link to a good website. I have
almost zero javascript knowledge. I was just tasked with this project.
Thanks,
Mark
http://www.naco.faa.gov/d-tpp/0609/00197HI1_35L.PDF
Create a simple HTML file that has an img tag with the src set to all the files you want:
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI1_35L.PDF">
And so on until you have an img tag for each file.
Then, open the page in IE, click the File Menu, Save As > Complete Web Page.
IE will save the page and all the files needed to "display" the page. It will put all the child files into a separate folder for it and name the folder by the TITLE attribute of the HTML file.
Save this page locally, open it, then do a File>Save As:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>Flying Publications</title>
</head>
<body>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI1_35L.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI1_35L.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI17R.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI22.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197I17R.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197I22.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197I35L.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HT4.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HT17R.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HT22.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HT35L.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197T4.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197T17R.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197T22.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197T35L.PDF">
<img src="http://www.naco.faa.gov/d-tpp/0609/00197AD.PDF">
</body>
</html>
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.
- References:
- JScript question
- From: markpatricksmith
- JScript question
- Prev by Date: Re: Change content-type using DHTML?
- Next by Date: Re: JScript question
- Previous by thread: Re: JScript question
- Next by thread: Re: JScript question
- Index(es):
Relevant Pages
|