I try to do some stuff after a SVG (referenced by an <object>
:)
<!--[if !IE]>-->
<object data="file.svg" type="image/svg+xml" id="image-1" width="760" height="730" > <!--<![endif]-->
<!--[if lt IE 9]>
<object src="file.svg" classid="image/svg+xml" width="200" height="200" id="image-1" width="760" height="730"> <![endif]-->
<!--[if gte IE 9]>
<object data="file.svg" type="image/svg+xml" id="image-1" width="760" height="730">
<![endif]-->
</object>
is loaded:
a = document.getElementById("image-1");
a.addEventListener("load",function(){
//some stuff
},false);
This works fine in browser with native SVG support. Yet when the SVG is served with svgweb's flash support, I can't get a load event fired. Did I mess something up or this to be expected?
What can I do to fire an event when the flash fallback is ready? I need this to dynamically hide/show <path>
s.