ImageUploaderFlash.ImageEditorClose Event HTML5/Flash Uploader

Supported technologies:

This event fires when the Image Editor is closed.

Syntax

ASP.NET
<script type="text/javascript">
function ImageUploaderFlash1_ImageEditorClose(index, result){
    //...your code...
}
</script>
<aur:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="ImageEditorClose" HandlerName="ImageUploaderFlash1_ImageEditorClose" />
    </ClientEvents>
</aur:ImageUploaderFlash>
PHP
<script type="text/javascript">
function ImageUploaderFlash1_ImageEditorClose(index, result){
    //...your code...
}
</script>
<?php
    $ImageUploaderFlash = new ImageUploaderFlash("ImageUploaderFlash1");
    //...other params...
    $ImageUploaderFlash->getClientEvents()->setImageEditorClose("ImageUploaderFlash1_ImageEditorClose");
    //...other params...
    $ImageUploaderFlash->render();
?>
JavaScript
function ImageUploaderFlash1_ImageEditorClose(index, result){
    //...your code...
}
$au.imageUploaderFlash({
    events: {
        //...other params...
        imageEditorClose: [ImageUploaderFlash1_ImageEditorClose],
        //...other params...
    }
})

Parameters

index

Type: Number

Index number of an image that was edited.

result

Type: String

One of the following values:

  • "Ok" - the user confirmed changes (clicked the OK button).
  • "Cancel" - the user cancelled changes (clicked the Cancel button).

See Also

Manual