PDA

View Full Version : Load Acrobat Reader via web page


ill_comms
07-21-2008, 08:16 AM
Hi All,

I have a bunch of pdf files that I want to view. There are hyperlinks on the page that I'd like to click on then via javascript load the acrobat reader application and view them. I do not want to view them through the Acrobat plugin in IE, but actually load and run through the Acrobat Reader application.

Is it possible to do this? Any help would be appreciated!!!

Hayden

Philip M
07-21-2008, 08:46 AM
The short answer is no.

JavaScript is purely a client-side language, and has no capability to read from or write to a file (except a cookie), access a database or the client's operating system. And for security reasons JavaScript cannot access anything beyond the domain of the current page. This is known as the "same origin policy" and prevents a document or script loaded from one origin from getting or setting properties of a document from a different origin.