Solved

File download

Posted on 1998-08-26
8
143 Views
Last Modified: 2010-04-09
I am currently developing a WEB page. I would like to
know how to activate a file download.
0
Comment
Question by:mat0974
8 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 120 total points
ID: 1837093
To automatically send a file, you could use this:

<SCRIPT>
window.location.href = "filetodl.zip"
</SCRIPT>

This will make the file start the download process...

That works in most browsers...

If this isn't what you wanted, please post more information
0
 

Author Comment

by:mat0974
ID: 1837094
I am not sure of your answer.

my web page will  contain a list of files. The user will then have
the option of clicking on any of the listed data. When clicking
on the 'text', the user should get a dialog box (I believe) which
prompt the user to enter where on is PC the file will be downloaded. then the user will click on a button is start the
download.
0
 

Author Comment

by:mat0974
ID: 1837095
I am not sure of your answer.

my web page will  contain a list of files. The user will then have
the option of clicking on any of the listed data. When clicking
on the 'text', the user should get a dialog box (I believe) which
prompt the user to enter where on is PC the file will be downloaded. then the user will click on a button is start the
download.
0
 

Expert Comment

by:webmaster7
ID: 1837096
make links like that
ftp:/YourPath/YourFile.zip

icq#17109805
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 1

Expert Comment

by:pestilence
ID: 1837097
You can allow users to download stuff from your web site by just adding this tags to your web page:
<a href="path/file.zip">This is a cool file.</a>
(<a href is used to call a hyperlink either to a web site or to a file)

0
 

Author Comment

by:mat0974
ID: 1837098
answer from webmaster (ftp:/YourPath.YourFile.zip)

When I add the link ftp:/YourPath.YourFile.zip, I get the following error:

Internet Explorer cannot open the internet site ftp:// ...

answer from pestilence <a ref="path/file.zip:

I am aware that with the right mouse button I can click on the
link. but I then have to click on Save As, then I get the Save
Dialog Box.

BUT, I would like to only click once instead od twice
0
 

Expert Comment

by:webmaster7
ID: 1837099
I didnt understand why did u reject pestilence.
and you need to click the left button.
0
 

Author Comment

by:mat0974
ID: 1837100
I am not downloading a .Z file. I am trying to download a
regular text file.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now