HREF with doc file ...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • booner

    HREF with doc file ...

    I haven't done something like this before but figured it would be simple to
    figure out ... not so far ... so enlisting the experts. I want to setup a
    web page that is basically a central location for some standard template
    documents. So I want to provide links to the word files but rather then
    having that launch the document for viewing I want that to cause the user
    who clicked the link to get the standard windows download dialogs.

    So I have several <a href="some word file.doc">Descr iption of file</a>
    entries ...

    Any help you can provide would be greatly appreciated.

    BBB


  • Thor Kottelin

    #2
    Re: HREF with doc file ...



    booner wrote:
    [color=blue]
    > I want to provide links to the word files but rather then
    > having that launch the document for viewing I want that to cause the user
    > who clicked the link to get the standard windows download dialogs.[/color]

    Regardless of what the user wants? Please see the FAQ at
    <URL:http://www.htmlhelp.co m/faq/html/all.html#force-download>.

    Thor

    --

    Comment

    • Daniel R. Tobias

      #3
      Re: HREF with doc file ...

      booner wrote:
      [color=blue]
      > So I have several <a href="some word file.doc">Descr iption of file</a>
      > entries ...[/color]

      Well, actually, since spaces are illegal characters in URLs unless
      escaped, you should use href="some%20wo rd%20file.doc", or else make sure
      to name your files without spaces in them.

      You should be sure the server is properly configured to send the correct
      MIME type for the files, "applicatio n/msword".

      After that, it's up to the end user's browser what to do with the file
      (display it in a plugin, launch Word or another viewer, save it to
      disk), depending on its configuration.

      MS Word is a proprietary format, so it's not really the best format to
      put anything up on the Web, unless it's specific to Word users.

      --
      == Dan ==
      Dan's Mail Format Site: http://mailformat.dan.info/
      Dan's Web Tips: http://webtips.dan.info/
      Dan's Domain Site: http://domains.dan.info/

      Comment

      Working...