SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: Downloading

  1. #1
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Downloading

    I have a link to a word document that I would like for the user to download. But when I click the link, it loads the document into the web page without asking the user . How do I force the download box to popup? Here is the code:

    Code:
    <A HREF="user_manual.doc" TARGET="Main">Download the User Manual</A>

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!

  4. #4
    SitePoint Wizard johntabita's Avatar
    Join Date
    Mar 2001
    Location
    In a big, big house, with lotsa lotsa room
    Posts
    1,062
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    As long as the file is a .zip, the download box will pop up, asking where you want to save it to (no right-clicking req'd). So your code would be:

    <A HREF="user_manual.zip" TARGET="Main">Download the User Manual</A>

    Here's an example in action, except that I'm using PDF not Word files:
    http://www.mmtglobal.com/downloads.html

  5. #5
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but remember he was specifically talking about Word files (.doc).

    If the user has Word on their computer, then IE will open it.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  6. #6
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try right-clicking on the link, then Save target as... and specify the location to szave the file to.

    Sketch
    Aaron Brazell
    Technosailor



  7. #7
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    He wants it so users don't need that
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  8. #8
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The link is available for the user to download the document. I already have a web version of the word document that they can look at online if they so choose. So I don't want the document to automatically load into the browser. Unless there is a way to force the document to be downloaded, I will have to use a zip file.

  9. #9
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Nope, the only way short of asp+ and some advanced coding is zip. It's also the easiest
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  10. #10
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did discover an alternate method that is a little more messy. Rename the file so that it has an extension that IE doesn't recognize such as .xxx instead of .doc. Then the user can rename it after they have downloaded it. But I think I will use the zip file. Thanks for the help!
    Last edited by sooonernut; Jul 10, 2001 at 05:09.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •