Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by andywi...@gmail.com on 24 Oct 2009 at 8:21

GoogleCodeExporter commented 8 years ago
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.

Original comment by grick23@gmail.com on 2 Nov 2009 at 2:21