vylan
asked on
Open a pdf in acrobat reader not a web browser
I need to create a button that will download a PDF file without launching a second browser window from a Flash .swf. The client does not want a second browser window or even the same browser window to open from the Flash. Prefer to have the PDF start a "download" instead of launching an application.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I need a javascript that is in the HTML window that closes and also makes it small. Like the pop-up ads that stay open and are extremely small. So, the AS would getURL and the HTML would start download and close.
If you do getURL("path/file.pdf.zip" , "_self");, it would not open up a new browser window which is not necessary... Hence you should not even needing a JavaScript to do extra trimming...
CyanBlue
CyanBlue
ASKER
actually true on Windows in IE but not on Safari on the Mac.
Um... That should work both on Mac and PC... I don't know why it won't work on Safari... Maybe your Safari is set to download the ZIP file automatically???
CyanBlue
CyanBlue
ASKER
"Maybe your Safari is set to download the ZIP file automatically"
No it's not. It will open a browser window and download.
I've got an idea for a solution but I'm stuck on one part. I will point to an HTML file that will close using a js. All I need to do is have that HTML page start a download. If there's a hyperlink for the .zip it would require a click. I there a onload function to activate the Mouse Release. Or a "Force Download" option without using .php or .asp? I've researched it and have come up empty.
Vylan
No it's not. It will open a browser window and download.
I've got an idea for a solution but I'm stuck on one part. I will point to an HTML file that will close using a js. All I need to do is have that HTML page start a download. If there's a hyperlink for the .zip it would require a click. I there a onload function to activate the Mouse Release. Or a "Force Download" option without using .php or .asp? I've researched it and have come up empty.
Vylan
Sorry... I have no idea why that's working in Safari... :(
CyanBlue
CyanBlue
Any update???
CyanBlue
CyanBlue
ASKER