tanathos / jquery.jqprint Goto Github PK
View Code? Open in Web Editor NEWjQuery print plugin
jQuery print plugin
Prepared stylesheet link may contain malicious href
that must be properly escaped before writing it to the DOM.
Reproducer: http://jsfiddle.net/x3stw1nh/4/
<html>
<head>
<link type='text/css' rel='stylesheet' href='about:blank'/><script>alert('xss');</script><br' />
<script>
$("body").jqprint();
</script>
</head>
<body>
test
</body>
</html>
Print Preview in Chrome 32 shows blurry text.
When I use jqprint on the safari brower ,The results of the print have the messy code。I think maybe because of I don't set the charset property to "UTF-8",But ,I do it,It dose not work。
I am using jquery dialog plugin to show a modal window and then using jqPrint to print just the contents of the modal. When the jqPrint is called it is not printing the complete content of the modal. This happens only in IE (ver 8 & 9) , print on other browsers(FF,Chrome) works fine. Below is the jsfiddler
http://jsfiddle.net/hPnXs/
I took following files from JQuery for my application development for printing content from "DIV" HTML tag.
jquery-1.11.1.js
jquery-migrate-1.2.1.min.js
jqprint.0.3.js
I could able to print content of "DIV" HTML tag in "FireFox", "Google Chrome" browsers. But I could not able to print content of "DIV" HTML tag in IE10 and IE8 with "JQPRINT" with "JQuery1.11.1".
Recently, I moved from JQuery1.8.1 to JQuery1.11.1.
"JQPRINT" option is working fine in all browsers with JQuery1.8.1. version.
But "JQPRINT" option is not working in IE10 and IE8 with JQuery1.11.1 version.
Could you please resolve this version in-compatibility against IE8 and IE10?
Please note that JQPRINT is working fine in "FireFox" and "Google Chrome" with JQuery1.11.1 version also but not in IE8 and IE10.
Thanks & Regards,
Hiranmayi
is there any documentation for this ?
thanks
Jquery higher, use the support instead of the browser, so change the browser to support, can be compatible with the latest version(将jqprint中的三处browser改为support即可)
We at VersionEye are working hard to keep up the quality of the bower's registry.
We just finished our initial analysis of the quality of the Bower.io registry:
7530 - registered packages, 224 of them doesnt exists anymore;
We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).
Sadly, your library tanathos/jquery.jqprint
is one of them.
Can you spare 15 minutes to help us to make Bower better?
Just add a new file bower.json
and change attributes.
{
"name": "tanathos/jquery.jqprint",
"version": "1.0.0",
"main": "path/to/main.css",
"description": "please add it",
"license": "Eclipse",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
"<dependency_name>": "<semantic_version>",
"<dependency_name>": "<Local_folder>",
"<dependency_name>": "<package>"
},
"devDependencies": {
"<test-framework-name>": "<version>"
}
}
Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.
NB! Please validate your bower.json with jsonlint before commiting your updates.
Thank you!
Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.