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

ImageUploaderFlash.PreRender Event

This event fires before the writeHtml() or getHtml() method is executed.

Syntax

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

See Also

Reference

Manual