Link to home
Start Free TrialLog in
Avatar of crescendo
crescendo

asked on

Displaying a PDF in a page without using frames

My app lets a user select a PDF report, and then displays it in a new window. My client now thinks it would look better in the main page, retaining the menus down the left so that he doesn't "get lost".

My page doesn't use frames, it uses tables to lay out the page. Is there a way to display a document in a table cell without using frames or IFRAMEs? Browser compatibility is an issue here.
Avatar of raterus
raterus
Flag of United States of America image

Tell your client if he wants browser compatibility, best to leave it in a frame/iframe, that way the browser decides how it is displayed.  You could do this with a third-party control they would have to download, then that wouldn't be very browser compatible.  I don't know how to do this, but I would imagine you could use adobe's pdf plugin within the page if you knew how to correctly identify it with an <object> tag.

Good Luck!

--Michael
Avatar of crescendo
crescendo

ASKER

I'm trying to avoid frames because it's a fair amount of work to change my app to use them, and I have a suspicion that when the client sees the result he'll say he preferred a new window after all.

Iframes are easy, but I think only IE 5.5+ supports them, so Netscape and old IE browsers won't see the output properly.
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
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
Fair enough, that makes it easy to please the client, so thanks again!

The reason I'm reluctant to invest too much energy in this is that the client has already given me a hard time making me scale everything to fit in an 800 x 600 window, "just in case". Now he wants to display the PDF in the 650 pixels to the right of the navigation menu. It will be unreadable, and he'll change his mind.
Don't you just love when they come to you and say "On second thought...I really want it like this now..."  Give them a quick demo page and ask them "Are you really sure you want it like this?"
Already done it!

That's why I like <iframe>, it's so painless.

It gets my goat that this is a fixed-price project at a rock bottom price. Contractually I could argue that I've done what they asked, but the reality is that I won't get paid until they are happy.