Welcome Guest Search | Active Topics | Sign In | Register

Using CallbackPanel with AJAXUploader.ClientSideOnError Options
Sana
Posted: Wednesday, August 29, 2007 9:34:02 AM
Rank: Member
Groups: Member

Joined: 6/20/2007
Posts: 17
Hi,

I am using AJAXUploader.ClientSideOnError javascript function to display errors using CallbackPanel on my page.

<script language="javascript">
function ClientUploadFailed(uploader, error, message)
{
eo_Callback('panUploadError', message);
}
</script>

It works just fine when Invalid Extension error occurs and execution goes into CallbackPanel.Execute server event handler. However, whenever file exceeds max size it for some reason CallbackPanel.Execute won't fire.

eo_support
Posted: Wednesday, August 29, 2007 9:38:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,097
Hi Sana,

Try to use window.setTimeout to delay the callback on that scenario. The page is blocked from postback when the uploader is in progress. So you need to let the uploader finishes cleaning up before you can call eo_Callback.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.