jQuery.printElement icon indicating copy to clipboard operation
jQuery.printElement copied to clipboard

printElement 2.0 IE Print iFrame problem solved :-)

Open compumatter opened this issue 12 years ago • 1 comments

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

compumatter avatar Dec 17 '12 02:12 compumatter

Awesome!

Will add, thanks

erikzaadi avatar Jan 01 '13 15:01 erikzaadi