Forum Moderators: open

Message Too Old, No Replies

opening a PDF doc inside html frame

how do i?

         

browser

7:44 am on Jan 8, 2003 (gmt 0)

10+ Year Member



I am trying to open a pdf doc in a frame based site, when i try to open the pdf document (by using onload in a dummy html page) , after getting the : You have chosen to download a file from this location. Open from current location or save to disk. If chosing open from current location acrobat reader opens automatically.

I would like to know if there is a way to open the pdf doc inside my page in a specified frame.

Any ideas?

Thank you

Willem Rabie

RonPK

11:02 am on Jan 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any file is supposed to be opened with an ordinary left-click on a hyperlink. That is standard browser behavior. So what I don't understand is why you're using onLoad().

browser

12:21 pm on Jan 8, 2003 (gmt 0)

10+ Year Member



usually that is the case but with a page split into three frames with one being a dynamic javascript menu driven by a menu structure in a an ORACLE database, with a body frame in which designer generated web pl/sql procedures /modules are run through an oracle 9i application server, it is not just that simple.

Opening the pdf document as stored on a virtual directory as mapped on the app server is fine but an instance of acrobat reader opens seperately to view the document, what I need to do is open the pdf document "inside" the body frame with acrobat only as a "plug-in" in the frame not a seperate entity...

I hope this makes sense .

Willem

chrisforeman2

1:21 pm on Jan 8, 2003 (gmt 0)

10+ Year Member



does your browser have the pluggin to read acrobat.?

if not it may be trying to save or use reader to view it

RonPK

2:11 pm on Jan 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I guess chrisforeman2's suggestion is right: it may depend on having Acrobat Reader installed as a plugin / ActiveX thing. When I use something like

<body onload="location.href='somedoc.pdf'">

somedoc opens in the browser, without any dialog.
'The browser' being either IE6 or Moz1.2.1

DrOliver

2:25 pm on Jan 8, 2003 (gmt 0)

10+ Year Member



You can never be sure how PDFs behave. I have set up Acrobat Reader so that PDFs never open within the browser window but always open up the Reader separately. That's how this is done:

Edit->Settings (or Ctrl K) -> browser options

I am talking about Acrobat Reader Version 5.1 in German, these settings might be called a bit different in the English version.

It's always depending on the user settings. At least I am not aware of a way to force the display of PDFs into browser windows or whatever.