Welcome Guest Search | Active Topics | Sign In | Register

Can't disable AJAXUploader on Page_Load Options
Daniele
Posted: Thursday, October 28, 2010 11:52:29 AM
Rank: Newbie
Groups: Member

Joined: 9/3/2009
Posts: 5
Hi,

In my project I have a page which is dedicated to file uploads. In this page I use a DropDownList to select the file type and an AJAXUploader. On first load, the uploader is disabled, because I disable it on page_load event. When I select the file type, the page goes postback and the uploader is set to enabled.

This page works using version 6 of EO.Web.dll, never had problems.

The problem comes now: I upgraded my dll to version 8.0.34.2 and the behaviour of the uploader changed.
Disabling the uploader on page_load doesn't seem to work anymore, because I find it enabled on first load. My code didn't change since the upgrade, it seems to me like the uploader "auto-enables" itself after my page_load.

Is it possible?

I don't paste code snippets because it's a very simple code, i call uploaderId.Enabled = false on page_load, and uploaderId.Enabled = true on dropdownlist postback, and I repeat, my code worked with the old version, it stopped working after the upgrade.

Thank you for your help,
Daniele
eo_support
Posted: Thursday, October 28, 2010 12:24:57 PM
Rank: Administration
Groups: Administration

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

We tested on the latest version and it appears to be working fine for us. It is correctly disabled on IE.

The same code however may not work on other browser, particular FireFox. Enabled is directly mapped to the root HTML element's disabled property and different browsers interpret it slightly different. Specifically, IE would consider disabling a parent element the same as disabling the whole tree, but FireFox would consider disabling a parent element just as disabling the parent element and leave all child elements still enabled. Our AJAXUploader does not do anything special to bridge this difference.

If you do not see it working even on IE, then we will need you to produce a test page in order for us to look into further since it’s working fine at here. Nevertheless, we would suggest you to use Visible instead of Enabled because how different browsers handles disabled property differently.

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.