FB 1.3.1 & PDF's - How to make them display properly?

366 views
Skip to first unread message

zynizen

unread,
May 4, 2010, 2:53:26 PM5/4/10
to fancybox
Previous versions of FB used to be able to view PDF's in an iframe no
problem.
Now they don't work. I've tried every method possible and combed all
support/faq I could find.
JFK doesn't have any tips on them either.

HOW do you get PDF files to view in a FB iframe properly WITHOUT the
browser asking you to download the file?

When I upgraded to 1.3.1 this feature killed my site! Please help!

Thanks!

--
You received this message because you are subscribed to the Google Groups "fancybox" group.
To post to this group, send email to fanc...@googlegroups.com.
To unsubscribe from this group, send email to fancybox+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fancybox?hl=en.

JFK

unread,
May 4, 2010, 7:00:28 PM5/4/10
to fancybox
I am not going to explain it (don't have time)
I haven't finished my recipe's cookbook yet but here it is for PDF's

html:
<a class="pdf" href="path/mypdf-file.pdf">open my pdf</a>

script:
$(".pdf").click(function() {
$.fancybox({
'width': '70%', // or whatever
'height': '90%',
'autoDimensions': false,
'content': '<embed src="'+this.href+'#nameddest=self&page=1&view=FitH,
0&zoom=80,0,0" type="application/pdf" height="100%" width="100%" />',
'onClosed': function() {
$("#fancybox-inner").empty();
}
});
return false;
}); // pdf
Reply all
Reply to author
Forward
0 new messages