homepage Welcome to WebmasterWorld Guest from 54.227.89.236
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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
toplisek




msg:4474623
 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() {
jQuery("a.fancypdf").fancybox({
'frameWidth': 670,
'frameHeight': 500,
'centerOnScroll': false,
'hideOnContentClick': false
});
});
</script>
</head>
<body>
<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" />
</div>

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