homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

IE and showing PDF inside Fancybox

WebmasterWorld Senior Member 5+ Year Member

Msg#: 4474621 posted 2:32 pm on Jul 11, 2012 (gmt 0)

I like to set Fancybox and working also inside IE8 or other versions.

How to change DIV into hidden element and show PDF document inside Fancybox also for IE?

<script type="text/javascript">
jQuery(document).ready(function() {
'frameWidth': 670,
'frameHeight': 500,
'centerOnScroll': false,
'hideOnContentClick': false
<a class="fancypdf" href="#mypdf" >open PDF file</a>

<div id="mypdf" style="display:none;">
<embed src="pdf/myPDF.pdf" type="application/pdf" width="640"
height="480" />

As I understand <embed> is HTML5 and how to support IE to work in all other browsers?
Currently it is style="display:none;"


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved