This documentation is for the old version. Go to the latest Upload Suite docs

Uploader.ImageRotated Event

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

This event fires when an image is rotated.

Syntax

ASP.NET
<script type="text/javascript">
function Uploader1_ImageRotated(){
    //...your code...
}
</script>
<aur:Uploader ID="Uploader1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="ImageRotated" HandlerName="Uploader1_ImageRotated" />
    </ClientEvents>
</aur:Uploader>
PHP
<script type="text/javascript">
function Uploader1_ImageRotated(){
    //...your code...
}
</script>
<?php
    $Uploader = new Uploader("Uploader1");
    //...other params...
    $Uploader->getClientEvents()->setImageRotated("Uploader1_ImageRotated");
    //...other params...
    $Uploader->render();
?>
JavaScript
function Uploader1_ImageRotated(){
    //...your code...
}
$au.uploader({
    events: {
        //...other params...
        imageRotated: [Uploader1_ImageRotated],
        //...other params...
    }
})

Remarks

This event is raised in both cases:

  • A user rotated an image.
  • An image is rotated programmatically, using the angle property.
Note

This event makes sense in ThreePanes layout only.

See Also

Manual