Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hyperlink to a textfile
Message
De
29/03/2004 08:49:23
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
25/03/2004 19:22:18
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00889776
Message ID:
00890385
Vues:
25
Gerry,

Thanks, we will probably go with the right click method and have instructions on the form to help guide the user through the process.

Thanks,

Jerry



>I'm not sure if you can "force" a download without resorting to scripting (in the case of a ".txt" file). What a browser does with a particular file seems to be dependent on the file extension when it tries to "open" it; ie. if it "recognizes" it, it takes an associated action (eg. run or download, view as txt, view as pdf, etc).
>
>It appears you can force a download by using "another" extension like ".dat" (ie. the browser will only open a subset of all possible file types).
>
>The other "usual" way a user downloads files explicity is to "right-click" on the link.
>
>>I have a web page that contains hyperlinks to text files so that the user can click the file and download it.
>>
>>However, if I name the file 'myfile.txt' and hyperlink it, when the user clicks the link, the data is rendered in the users browser. But what I really want is for the browser's Save AS dialog to display asking the user to save the file.
>>
>>Is there anyway that I can make the hyperlink download the file vs opening the file?
>>
>>Thanks,
>>
>>Jerry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform