jQueryPlugins icon indicating copy to clipboard operation
jQueryPlugins copied to clipboard

Image element printing problem.

Open stevesum opened this issue 12 years ago • 2 comments

When the element DOM is contain IMG elements, then the IE9 print the whole page, and not only the given div. You can test here: http://www.felleskatalogen.no/medisin/pasient/pil-aranesp-amgen-546421 The "Utskrift" link is the "Print" link.

In Chrome 21 the selected div is printed, but there are blank areas instead the images.

Do you know any solution on this problem?

BR, Steve

stevesum avatar Sep 18 '12 13:09 stevesum

The IE problem is limited only on iframe print mode. In the popup mode works correctly.

stevesum avatar Sep 19 '12 12:09 stevesum

I had the same problem and it was reltive urls.

uno.print=function(jq,options){uno.norelativeurls();jq.printElement(options)}; uno.norelativeurls=function(){var aa=document.getElementsByTagName('img'); for(var a=0;a<aa.length;a++){ if(uno.startswith(aa[a].src,'http://')){continue;} if(uno.startswith(aa[a].src,'https://')){continue;} aa.src=uno.host+location.pathname+aa.src;}};

//Fixes on the fly the issue about images not having relative image src urls not showing correctly in chrome and other browsers //Usage : uno.print(jQuery('#elmid'),{OPTIONS HERE})

hidekiyamamoto avatar Jan 18 '13 06:01 hidekiyamamoto