jQuery.printElement
jQuery.printElement copied to clipboard
printElement 2.0 IE Print iFrame problem solved :-)
Hello,
I had your version 1.2 and found IE was printing blank page only.
I searched and found your version 2.0 but the problem still existed...
I isolated the problem here and inserted a setTimeout. That cured it. IE was getting the print command before it was done building the iframe.
//------------------------------------------------------------------------
function _callPrint(element) {
if (element && element.printPage) {
/* compumatter inserted code. IE displayed blank page every time if no delay was inserted
this was because 'print' was getting ahead of the iframe content being filled' */
setTimeout(function () {
element.printPage();
}, 50);
}
else {
setTimeout(function () {
_callPrint(element);
}, 50);
}
}
//------------------------------------------------------------------------
Sincerely,
Jay Lepore CompuMatter
Awesome!
Will add, thanks