Darren Power
Member since Oct 15, 2009
- Profile: /members/4535-darren-power.htm
- Comments: 5
Recent Blog Comments By Darren Power
-
Ask Ben: Print Part Of A Web Page With jQuery
Posted on Oct 15, 2009 at 9:06 AM
Hi Martin, Nope, that's not doing it for me either! I got around the image problem by using... objDoc.write( "<style type=\"text/css\"> img {display:none;}</style> "); ...but haven't been able to reference the css file correctly. Thanks again for all your help though! Kind regards,... read more »
-
Ask Ben: Print Part Of A Web Page With jQuery
Posted on Oct 15, 2009 at 8:02 AM
Still can't get it to reference the css file, even though it's now included in the temp div (I've tried absolute, and relative links, different locations in the head for the link, and single then no quotes around the attributes...: objDoc.open(); objDoc.write( "<!DOCTYPE html PUBLIC \"-//W3C//... read more »
-
Ask Ben: Print Part Of A Web Page With jQuery
Posted on Oct 15, 2009 at 7:50 AM
Hi Martin, Nope, I wasn't referencing the print css file at all... Turns out I was indeed missing something glaringly obvious! Thank you very much for your help. Kind regards, Darren.... read more »
-
Ask Ben: Print Part Of A Web Page With jQuery
Posted on Oct 15, 2009 at 5:13 AM
Hi Martin, I do have a print.css file however I don't believe it's referenced when using the print link. If I use File > Print, it prints as intended, using the css file, but not using the javascript link. Is there something glaring that I'm missing? Thank you for your reply, Kind regards, D... read more »
-
Ask Ben: Print Part Of A Web Page With jQuery
Posted on Oct 15, 2009 at 4:44 AM
Hi, Do you know of any way I can hide an image from the printed page, without removing it from the underlying page? I've currently got the following which prints without the image, but (obviously) the image flickers when the print dialogue is displayed: $( "#LeftContent h1 img").css('display', '... read more »