Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Apr 2007
    Location
    Norrköping, Sweden
    Posts
    12
    Member #
    15096
    Hi

    I've made a link for downloading a pdf file in IE 6 the pdf doesn't download and it turns up in the same window.

    this is the code.
    <a href="downloads/artikel_dagens%20medicin.pdf">Ladda ner artikeln som pdf. </a>

    In safari this code is works fine but apperently not on exploerer ( at least no 6).

    Another problem I have is that en eps.file changes to a postscript file after downloading.

    Does anyone has an answer to this would be great!

    Thanks

    OC

  2.  

  3. #2
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    PDFs are regularly to be opened in the browser. In order to provide something for download, you should zip it. People expect zip files for downloads, for one thing. Thats the solution for number one.
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  4. #3
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Yeah, some browsers will attempt to open certain files, such as a PDF.

    You could also tell you to right click the download link and click "Save Target As" or "Save Link as" or words to that effect.

  5. #4
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    Nowadays on the web most people know about zip files anyway. And its a universal format too. Best use that when possible.
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  6. #5
    Junior Member
    Join Date
    Apr 2007
    Location
    Norrköping, Sweden
    Posts
    12
    Member #
    15096
    Thank you for the great advices! I'll just go ahead and zip-away However I wonder, will for example mac users be able to open zip? Or does new compressing software work for all systems? I know sometimes when I get a zip file I can't open it. Or should I do one for mac one for pc just in case?

    /OC

  7. #6
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    Hmm, I've never used a mac in my, err, adult life (being 16), so I don't know. For windows users its easy as a folder, and anyone using something like linux won't have any trouble either.
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  8. #7
    Junior Member
    Join Date
    Apr 2007
    Location
    Norrköping, Sweden
    Posts
    12
    Member #
    15096
    Alrighty then... it seems like it would be a good idea to use options for both pc and mac. Thanks for your help

    OC


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:28 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com