This event fires when the current POST request is about to be uploaded.
<script type="text/javascript"> function ImageUploaderFlash1_BeforeSendRequest(){ //...your code... } </script>
<aur:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server"> <ClientEvents> <aur:ClientEvent EventName="BeforeSendRequest" HandlerName="ImageUploaderFlash1_BeforeSendRequest" /> </ClientEvents> </aur:ImageUploaderFlash>
<script type="text/javascript"> function ImageUploaderFlash1_BeforeSendRequest(){ //...your code... } </script>
<?php $ImageUploaderFlash = new ImageUploaderFlash("ImageUploaderFlash1"); //...other params... $ImageUploaderFlash->getClientEvents()->setBeforeSendRequest("ImageUploaderFlash1_BeforeSendRequest"); //...other params... $ImageUploaderFlash->render(); ?>
function ImageUploaderFlash1_BeforeSendRequest(){ //...your code... }
$au.imageUploaderFlash({ events: { //...other params... beforeSendRequest: [ImageUploaderFlash1_BeforeSendRequest], //...other params... } })