Link to home
Start Free TrialLog in
Avatar of vylan
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
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vylan
vylan

ASKER

I figured as much. How about having a script close the window after the download is invoked (using .zip). I need the browser window to close automatically since the client does not want to defer from the online Flash presentation.
Avatar of vylan

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
Avatar of vylan

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
Avatar of vylan

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
Sorry...  I have no idea why that's working in Safari...  :(

CyanBlue
Any update???

CyanBlue