Welcome Guest Search | Active Topics | Sign In | Register

Uploader - set AutoPostBack from javascript? Options
Phil
Posted: Monday, December 13, 2010 12:01:06 PM
Rank: Advanced Member
Groups: Member

Joined: 11/16/2010
Posts: 48
Can I set an AjaxUploader's AutoPostBack property from javascript?

I have several Uploaders on a page and want to detect when the last one has uploaded

I've tried

document.getElementById('ctl00_cpMainContent_Uploader_0').AutoPostBack = true;

but it does not fire Uploader_FileUploaded server-side (the client side uploadComplete fires OK)

eo_support
Posted: Monday, December 13, 2010 12:22:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can not set that property on the client side with JavaScript. As a general rule, you can not set any of our server properties on the client side with an above syntax. We provide client side objects and functions for you to modify our objects on the client side and that's the only API you should be using while interacting with our objects with JavaScript:

http://doc.essentialobjects.com/library/1/clientapi_howto.aspx

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.