Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Forcing a Save-As box... PDF
Name: Infinite Recursion Date: May 3, 2004 at 13:06:24 Pacific OS: na CPU/Ram: na
Comment:
I have a link to a PDF file on a website. I do not want it to be opened in the browser, due to its size. I would like to force the user to download it instead. I've looked for ways to do this, but all of the javascript code that I have seen, doesn't work. Any ideas?
I need a Javascript or PL/SQL solution, if possible.
Name: anonproxy Date: May 3, 2004 at 17:49:15 Pacific
Reply:
I am only am familiar with the method(s) proposed in this document.
0
Response Number 2
Name: Khalid Date: May 4, 2004 at 05:11:23 Pacific
Reply:
And I only know a method with PHP. Not in Perl/ JavaScript as you requested. Let me know if you havent found anything and want to try with PHP.
0
Response Number 3
Name: safeTsurfa Date: May 4, 2004 at 09:03:55 Pacific
Reply:
Why not just upload it as a zip file and provide a link to that? If you won't let the browser with its plugin respond correctly to what it finds, I see no benefit in having the file remain in PDF format during download.
Anonproxy, I have seen that site before... those methods, for some reason, did not work.
Khalid, I wish I could use PHP... it make my life alot easier. ;)
safeTsurfa, I agree, but the boss prefers not to have the PDF zipped because some of our users are "clueless" and we do not want to have a "How-To" for the unzipping process or the phone calls associated with it.
Summary: You can use PHP to sent headers before the actual file and force the browser to open a "save as" dialog box. Use: header( "Content-type: application/octet-stream\n" ); then use (internet explorer for...
Summary: I need to get this up tomorrow but I still have no clue how to do it. I want a simple function like a box where people can type text in and a save button, that simple. so the display is the same place...
Summary: I have no experience with coldfusion, but googling comes up with some links you may find interesting. By the way: What I'm saying is that when an image link is clicked the server sends a normal heade...