Solved

File download

Posted on 1998-08-26
8
147 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
[X]
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
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

730 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