WordPress.org

Ready to get started?Download WordPress

Forums

Print Button Shortcode
[resolved] Not working with IE (4 posts)

  1. leahda
    Member
    Posted 2 years ago #

    This plugin work very well in Chrome, Firefox and Safari but IE.
    My IE version is 9. When I click the button, nothing happens.

    http://wordpress.org/extend/plugins/print-button-shortcode/

  2. leahda
    Member
    Posted 2 years ago #

    I found the root cause.

    IE doesn't like the new window name to have spacebar. So we must change this line
    w=window.open(null, 'Print_Page', 'scrollbars=yes');

    Then we still cannot print yet. There must be this line
    w.document.close();
    before the print command
    w.print();

    Now it works.

  3. robynb
    Member
    Posted 1 year ago #

    I am having the same problem you had. Thanky you for posting your solution. What did you do to change the line
    w=window.open(null, 'Print_Page', 'scrollbars=yes');

    Did you do anything to edit any other lines or did you just insert the w.document.close(); line on the line before w.print(); ?

  4. leahda
    Member
    Posted 1 year ago #

    Just edit and insert the lines you mentioned, as I remember.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic