arv / explorercanvas Goto Github PK
View Code? Open in Web Editor NEWCanvas for IE8 and older
Home Page: https://code.google.com/p/explorercanvas/
License: Apache License 2.0
Canvas for IE8 and older
Home Page: https://code.google.com/p/explorercanvas/
License: Apache License 2.0
ExplorerCanvas Copyright 2006 Google Inc. ------------------------------------------------------------------------------- DESCRIPTION Firefox, Safari and Opera 9 support the canvas tag to allow 2D command-based drawing operations. ExplorerCanvas brings the same functionality to Internet Explorer; web developers only need to include a single script tag in their existing canvas webpages to enable this support. ------------------------------------------------------------------------------- INSTALLATION Include the ExplorerCanvas tag in the same directory as your HTML files, and add the following code to your page, preferably in the <head> tag. <!--[if lte IE 8]><script type="text/javascript" src="excanvas.js"></script><![endif]--> If you run into trouble, please look at the included example code to see how to best implement this
when I create a canvas by javascript , it show me 'object unsupport“getContext” ' on IE8
my code like that
var canvas = document.createElement("canvas"); var ctx = canvas.getContext("2d");
Hi!
Just wanted to know if it could be possible to add a bower.json
file, then adding ignore
rules to it.
This way, it will be possible to fetch only the JS file without getting tests, HTML files, etc.
What do you think @arv?
In your canvas polyfill , it only support canvas drawImage from image, but i want to drawImage by passing the source canvas directly ? How to solve it ?
i want to use make a image and append in my dom, but not work in IE8. what's the problem?
...
var image = canvas.toDataURL("image/png");
var img = document.createElement("img");
img.src = image;
img.width = canvas.width;
img.height = canvas.height;
$("#id").append(img);
...
It appears that the script fails to load when using Trident/IE web browser control. The errors occurs at
Line 51 in aa989ea
In Trident, MSIE is not defined in the user agent and the return value for the match function is null. I'm not sure the IE_VERSION variable is used anywhere and maybe it can be removed.
It would be nice to add a tag with the version to fix in the bower.json file.
Why get the Canvas object is [object DispHTMLUnknownElement] type, the following code:
var els = doc.getElementsByTagName('canvas');
for (var i = 0; i < els.length; i++) {
this.initElement(els[i]); //[object DispHTMLUnknownElement]
}
}
initElement: function(el) {
//...
el.innerHTML = '';//throws an exception under IE8
//...
}
In the right circumstances, it should be [ object DispHTMLGenericElement ].
Why is this so?TKS
IE6 cannot to load script. It's support IE6?
I can not make it work with coolclock.js:
http://fabbryzz.it/anteprima_template_dres/(6)/utilities.html
Can you help me?
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.