Coder Social home page Coder Social logo

printarea's Introduction

This software is licensed under the MIT agreement. Please see license.txt for any additional requests.

You can specify 2 modes of printing. 
Iframe mode is unobtrusive while popup mode opens a separate browser window. 
Popup mode allows for the option of leaving the window open or automatically closing after printing.  
Other options were added as the need arose, such as adding css to the page printed document, retaining attributes of the source element, adding elements to the head of the document printed and specifying several predefined document standards (the default is html5), even the popup was not part of the original plan. 

Update 2.4.0
    - Issue reported in IE (specifically 11) that the iframe mode is printing the whole page.
        * After some investigation the demo seemed to break when the external css was not completely loaded from the external site in the iframe.

    - Notes:
        * Minor version increased.
        * Added jquery ui dialog to demo (jquery-ui-1.10.4)
        * Demo is using jquery-1.10.2

Update 2.3.3

    - Issue reported that when using Chrome, css not being applied correctly. Added delay to allow css to be applied correctly to print document.
        Thanks jer-gallagher-oe for supplying the fix!

Update 2.3.2

    - Fixed bug in IE8 browsers and jquery 1.7 (as reported in issues). Switch from for-in to for-each.

Update 2.3.1

    - Important Changes:
        * In this version, the document standard is no longer set by the option 'strict'.
            To accomodate different standards, you can specify one of [strict, loose, html5] as the new 'standard' option.
        * HTML5 is the default standard for the doc type.

    - Notes:
        * For <link> elements, you MUST include the 'rel' attribute with a value of 'stylesheet'. Otherwise the stylesheet will not be included in the printed element.
        * New option : 'extraHead' this is a comma delimited string of additional elements that is added to the head of the printed document.
            An example of this might be: '<meta charset="utf-8" />,<meta http-equiv="X-UA-Compatible" content="IE=edge"/>'

printarea's People

Contributors

ritsc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.