Solved

how to write the script to download file?

Posted on 1998-07-20
6
421 Views
Last Modified: 2008-02-26
how to write the script to download file from server? i'm creating home page and i want users to down load one perticular file in to their desktop.  when ever user click on the start dounloadind buton then the new window should should pop to specify where to store the file. Then on "ok" click download should begin from server. How do i write the html code for that. I also have frontpage98 but i didn't find any helf in their.
Where can i find and sample examples different kinds of trick of writing homepage?
0
Comment
Question by:patelb
6 Comments
 

Expert Comment

by:aj1070798
ID: 1844756
.
0
 
LVL 2

Expert Comment

by:Quixote
ID: 1844757
In all cases where the web browser does not understand the type of file being downloaded, it should give the user the option to download and save it.  You will only run into problems if the file is something the browser understands, like a .gif or .jpg or .txt.  If it is this type of file, simply create a normal link to it and tell the user to choose File|Save As... once they see the file in their browser.

  If the file is a different kind of file (.exe or .doc or .xls or whatever), then just create a link to it, and the option to save should be given.

  For example, if your file is "MyDoc.doc", and it is in the same directory as your HTML page, then make this link:

<a href="MyDoc.doc">Click to download My Doc</a>


In regard to your second question, of where to go to learn this stuff, try these two first:

http://www.builder.com
http://www.webmonkey.com

Good luck!
-Quixote
0
 

Author Comment

by:patelb
ID: 1844758
thank u for replying me is there any way i could do this in frontpage98. is there any way i could check the file if it's already axist then just update file or or some table (access97 table)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1844759
as Quixote wrot, just link (CTRL-K) to the file. You cannot check if it's on the local harddrive, as you cannot read from the surfer's HDs
0
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1844760
btw aj1, in order to be included in email notification, you do not have to fill out the textarea - just check the button and hit "Submit"
0
 
LVL 12

Accepted Solution

by:
Otta earned 20 total points
ID: 1844761
Try:

<A HREF="http://www.MYHOST.com/filename.ext">
Hold the SHIFT key and click <B>here</B> </A>
to download this file.

The SHIFT-CLICK causes the "Save As" menu to appear,
in at least *SOME* browsers.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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