This event fires before the writeHtml() or getHtml() method is executed.
<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>
<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(); ?>
function ImageUploaderFlash1_PreRender(){ //...your code... }
$au.imageUploaderFlash({ events: { //...other params... preRender: [ImageUploaderFlash1_PreRender], //...other params... } })