Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a button with IE 7.0
Message
From
07/10/2013 13:59:44
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01584896
Message ID:
01584926
Views:
29
>Hmm. Quick test:
        protected void Page_Load(object sender, EventArgs e)
>        {
>            theButton.Attributes.Add("onClick", "this.disabled=true; document.Form1.submit(); return false;");
>          //theButton.Attributes.Add("onClick", "document.Form1.submit(); this.disabled=true; return false;");
>
>            if (IsPostBack)
>            {
>                int i = 0; 
>                // If 'disabled' is first: Firefox - works. button disabled, postback
>                //                         Chrome - button disabled, no postback
>                // If 'submit' is first :  Firefox - postback, button not disabled
>                //                         Chrome - postback, button not disabled
>            }
>        }
Didn't test IE...
>>
>>But, despite the fact that this no support was only referencing to other controls, I believe it might have applied also to buttons. The situation might be caused because of the usage of "true" instead of "disabled". That is why I need to complete the installation of IE, currently in progress, and take a look at this.
>
>Pls let us know what you find

Before proceeding with more tests, can you adjust your code for "onclick" instead of "onClick"? I will only be able to test with IE 7 in about an hour. But, I think IE 7 might be case sensitive on that one. That would then explain the situation.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform