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

Uploader.SelectionChange Event

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

This event fires when a user changes a selection in the upload pane.

Syntax

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

See Also

Reference

Manual