Skip to content Skip to sidebar Skip to footer

Can't Add Listener To A Svg In Internet Explorer Using Svgweb

This code works great in Firefox, but not in IE. I've read the documentation of SVGWeb (http://svgweb.googlecode.com/svn/trunk/docs/UserManual.html), but I don't find/understand th

Solution 1:

Try to call addEventListener inside this block instead onsvgload:

window.addEventListener('SVGLoad', function() {
   // all SVG loaded and rendered
}, false)

These constructions are equal but I make this assumption because of an error: "Error while firing onload: Not supported"

Solution 2:

Don't know if it helps but I had much the same problem with it working in every browser except IE8 and IE7. The problem was caused by using a self closing image element <image/> instead of <image></image> in the svg.

Post a Comment for "Can't Add Listener To A Svg In Internet Explorer Using Svgweb"