Solved

how to write the script to download file?

Posted on 1998-07-20
6
413 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

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.

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 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

13 Experts available now in Live!

Get 1:1 Help Now