Uploader.ImageEditorClose Event ActiveX/Java Uploader

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

This event fires when the Image Editor that previews an image from the upload pane is closed.

Syntax

ASP.NET
<script type="text/javascript">
function Uploader1_ImageEditorClose(index, result){
    //...your code...
}
</script>
<aur:Uploader ID="Uploader1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="ImageEditorClose" HandlerName="Uploader1_ImageEditorClose" />
    </ClientEvents>
</aur:Uploader>
PHP
<script type="text/javascript">
function Uploader1_ImageEditorClose(index, result){
    //...your code...
}
</script>
<?php
    $Uploader = new Uploader("Uploader1");
    //...other params...
    $Uploader->getClientEvents()->setImageEditorClose("Uploader1_ImageEditorClose");
    //...other params...
    $Uploader->render();
?>
JavaScript
function Uploader1_ImageEditorClose(index, result){
    //...your code...
}
$au.uploader({
    events: {
        //...other params...
        imageEditorClose: [Uploader1_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 Ok button was pressed;
  • "Cancel" - the Cancel button was pressed;

Remarks

See Also

Manual