Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Baden

    (@baden03)

    one thing at a time. first up, the IE issue.
    bring out the Bourbon.

    How comfortable are you editing the .js file?
    if so, try replacing the following in printomat.js, around line 72:

    if (!!navigator.userAgent.match(/Trident\/7\./)){
    			//jQuery(w.document.body).append( jQuery( target ).clone().html() );
    			jQuery(w.document.body).append( function() {
    				var ieID = target.substr(1);
    				var ieOutput = jQuery( w.document.createElement( 'div' ) );
    				if ( target.substr(0,1) == '#' ){
    					ieOutput.attr('id', ieID);
    				} else{
    					ieOutput.addClass(ieID);
    				}
    				return ieOutput.append( jQuery( target ).clone().html() );
    			});
    		}
    		else{
    			jQuery(w.document.body).append( jQuery( target ).clone() );
    		}

    with just:

    jQuery(w.document.body).append( jQuery( target ).clone() );

    Thread Starter Crssp

    (@crssp)

    Thanks Baden… gotcha… right around the creative comments for IE, love those!
    Would this be correct then, do I need brackets in the js or anything.

    //rot in _ _ _ _, Internet Explorer
    
    			jQuery(w.document.body).append( jQuery( target ).clone() );
    
    		//stylesheet

    Still didn’t seem to be working at first blush.
    Thanks.

    Thread Starter Crssp

    (@crssp)

    Is there a demo page anywhere, where anyone has successfully used IE with print-o-matic?

    Hoping maybe I can simplify my selectors.

    Probably going to revert back to the original code then.

    Plugin Author Baden

    (@baden03)

    if that did not fix the issue, then yes, please revert back to the original code.
    Can you create a test page where you target an element that does not have a dash in the selector? for example:

    <div id="myeieiotest">This is what I want to print, please work, IE</div>
    [print-me target="#myeieiotest"]

    There might be an issue with IE and using the dash (-) in the selectors.

    Do, please, let us know how it goes.

    Thread Starter Crssp

    (@crssp)

    That may have been it then Baden, it is not advisable to have dashes (hyphens) in the selectors then maybe.

    For reference if there is a target in the shortcode is the Default Target Attribute in the settings page totally ignored then? A bit confused on that the doc’s are not specific.

    I had nearly given up on this particular plugin, and was playing with the Print Friendly PDf plugin, a bit of a mess at the moment, no link to share.

    Plugin Author Baden

    (@baden03)

    For some reason, dashes do seem to be an issue with IE. Now that we know where to look, we’ll focus on getting this addressed.

    The default attributes values (target included) set in the options page will be overwritten if they are assigned in the shortcode. We have added this little tidbit to the Print-O-Matic documentation. Thank you for the useful feedback!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘IE 11 print problems, printing image only’ is closed to new replies.