Solved

File download

Posted on 1998-08-26
8
145 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Expert Comment

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

icq#17109805
0
 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
html5 auto send email 7 26
send keys not working in vba 7 58
How to make footer stick to bottom 9 27
Html test in IIS 4 20
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

785 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