Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Displaying a PDF in a page without using frames

Posted on 2004-09-15
6
Medium Priority
?
277 Views
Last Modified: 2012-05-05
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.
0
Comment
Question by:crescendo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 33

Expert Comment

by:raterus
ID: 12069718
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
0
 
LVL 9

Author Comment

by:crescendo
ID: 12069762
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.
0
 
LVL 33

Accepted Solution

by:
raterus earned 1000 total points
ID: 12069870
<iframes> are a little more available than IE 5.5+
http://www.webmastersupercenter.com/webdesign_browser.htm

I think you'll be safe using them, especially if you look at the statistics for who is using what browser these days.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Author Comment

by:crescendo
ID: 12069915
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.
0
 
LVL 33

Expert Comment

by:raterus
ID: 12069972
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?"
0
 
LVL 9

Author Comment

by:crescendo
ID: 12070032
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.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question