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

Thumbnail.Click Event

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

This event fires when the ThumbnailThumbnail (ASP.NET)Thumbnail (PHP)thumbnail (JavaScript) control is clicked.

Syntax

ASP.NET
<script type="text/javascript">
function Thumbnail1_Click(){
    //...your code...
}
</script>
<aur:Thumbnail ID="Thumbnail1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="Click" HandlerName="Thumbnail1_Click" />
    </ClientEvents>
</aur:Thumbnail>
PHP
<script type="text/javascript">
function Thumbnail1_Click(){
    //...your code...
}
</script>
<?php
    $Thumbnail = new Thumbnail("Thumbnail1");
    //...other params...
    $Thumbnail->getClientEvents()->setClick("Thumbnail1_Click");
    //...other params...
    $Thumbnail->render();
?>
JavaScript
function Thumbnail1_Click(){
    //...your code...
}
$au.thumbnail({
        events: {
            //...other params...
            click: [Thumbnail1_Click],
            //...other params...
        }
})