Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

links for documents to download not open

Status
Not open for further replies.

ray436

Technical User
Apr 11, 2000
254
CA
hi people, this may be a simple question, but......

i would like to have links for a document ( a printable customer entry form ) that is offered for download when clicked, not opened.

if i make the document with MS Word , and the user clicks it, it may open instead of downloading if the customer has word on there PC.

i would like to avoid zipping ( they may not be able/want to use it) or self extracting zips ( the result may end up who knows where on the PC )

thanks........

[sig][/sig]
 
if you do not place a document extension (i.e. .doc) their system will not know what program is used and should go for the download immediately. You should place some kind of note telling them what program to use to open/associate the file with. I would most likely make it an adobe file if you don't want people to be able to edit it.

But if you just don't include an extension, their system will go for a download.

Hope this helps! [sig][/sig]
 
Sneaky.....

never thought of that, thanks. what i will likely do is give it the extension ".zzz" just so there are no association errors created in windows.

what i am doing now is using a javascript to produce a button that automatically calls the print function in windows, and the user prints the page.
- here's the script BTW
(paste it in the BODY where you want the button)

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!-- Begin
if (window.print) {
document.write('<form>Click button to '
+ '<input type=button name=print value=&quot;Print&quot; '
+ 'onClick=&quot;javascript:window.print()&quot;> this page!</form>');
}
// End -->
</script> [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top