...

View Full Version : PDF won't display in iframe



fuzzy1
12-12-2007, 09:36 PM
Hey All, and season's greatings!

I have a page in a php based web app (Sugar CRM) which contains a number of hidden divs which unhide conditionally, and would like to add a div
containing an Iframe with a source of Untitled.pdf.

While the following snippet tests fine all by itself in test.html, when added to the intended.html the iframe returns only PDF code garbage.

Has anyone experienced / is there a good explanation / soultion for this?


<div id="review_report_div" style="visibility:visible; width: 700px; height:700px; position:absolute; z-index:100" >
<iframe name="review_report_frame" id="review_report_frame"
src="data/inspection_pdfs/Untitled.pdf"
width="100%"style="height:100em" ></iframe>
</div>

tyanque
12-13-2007, 01:48 AM
i tried this and it worked fine for me


<div id="review_report_div" style="visibility:visible; width: 700px; height:700px; position:absolute; z-index:100" >
<iframe name="review_report_frame" id="review_report_frame"
src="random.pdf"
width="100&#37;"style="height:100em" ></iframe>
</div>

try putting the whole path to the file see if tht makes a difference



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum