Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

File download

Posted on 1998-08-26
8
146 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

839 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