Export to GitHub

svgweb - issue #364

onload event does not fire when image url is a security error


Posted on Oct 24, 2009 by Massive Lion

I use the window.onload to start the animation but it doesn't trigger. (tested with <body onload="">; not woking either)

<script type="text/javascript"> function rotation(){ document.getElementById("test").value = "success"; document.getElementById("test2").disabled = "true";

    .
    .
    .

}

window.onload = function(){
    rotation();
}

</script>

Further reference http://www.andywise.si/test/?svg.render.forceflash=true (2009-10-24).

The code works with native support but not with the flash renderer.

svgweb-2009-10-12-Beholder Windows 7 Firefox 3.5, Chrome 4, IE 8, (Opera 10) Flash 10

Comment #1

Posted on Nov 2, 2009 by Grumpy Dog

Thanks for the report. Nice sample working clock. The time is even right!

This is the same as Issue 238. The SVG contains an image element with a url pointing to a Windows D: drive. The exception was absorbed properly, but I needed to do some more cleanup.

Fixed in r958.

Status: Fixed

Labels:
Type-Defect Priority-Medium