Reputation: 21
I just see that the loading overlay doesn't disappear in IE when i load a PDF file...
$.extend($.colorbox.settings, {
transition: "none",
opacity: 0.6,
iframe: false,
fastIframe: false,
returnFocus: true,
escKey: false, // do not close when ESC is pressed
overlayClose: false, // do not close when overlay is clicked
initialWidth : 872,
initialHeight : 465,
innerWidth : 872,
innerHeight : 465});
$.colorbox({
iframe: true,
data: null,
href : 'myPDFurl',
title : 'Load PDF in IFRAME',
onComplete : function() {
alert('document loaded !');
}
});
The "document loaded !" message doesn't appear either.
Thanks in advance,
devyan
Upvotes: 2
Views: 2142
Reputation: 146
For me worked this:
$('.cboxPDF').css('outline','none').colorbox({iframe: true,
innerWidth:'80%', innerHeight:'80%',
title : 'Title od PDF',
onComplete : function() {
console.log('document loaded !')}
});
Upvotes: 0
Reputation: 17288
Try this:
$(function(){
$.colorbox({
iframe: true,
innerWidth:425, innerHeight:344,
href : 'url',
title : 'Load PDF in IFRAME',
onComplete : function() {
alert('document loaded !');
}
});
});
Demo: http://jsfiddle.net/EcqJP/
Upvotes: 3