Results 1 to 6 of 6

Thread: attachments !

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    attachments !

    Hi all :
    Code:
    <BODY>
      <A HRef="MyFile.doc">Click Here For File</A>
    </BODY>
    When I put the above in, it'll open the word doc up in a new Internet Explorer window.

    How can I get this to download to the PC rather than open it up ?
    You know when the sites give you a dialog box for where to put the file, then an all singing, all dancing MS progressbar for how long this'll take.

    Is this easy ?
    How can I do it please

    Thanks !!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    I'm sure there is another way that you are probably thinking of, that don't recall off of the top of my head, but...

    don't forget the user can right click and say "save target as" or whatever.

    You can also use <a href='ftp://myserver/mypath/mydoc.doc'>.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    rsitogp
    Guest
    No idea, but I think it's more server dependent. Try to archive it and post the link.

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I would just Zip it.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You have almost no control over how the browser handles a link. If Word is installed, it will open in the browser using IE as a container for Word. If not, it will prompt to download. JoshT is right, zipping it may be the only consistent way to get the download prompt. Unless some goombah has their browser set up to display zip files instead. :c)

    BTW- This topic is now the most posted. Doesn't anyone read the posts anymore?
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  6. #6

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Thanks all !

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

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



Click Here to Expand Forum to Full Width