WebButton enabled state by javascript

1 reply. Last post: November 1, 2009 9:23 PM by Handy Surya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Onece again I hit the lack of JavaScript reference for the Intersoft controls.

I have to disable a WebButton in JavaScript. How do I do that? I have tried:

var wb = ISGetObject("<%=c_wbRetrieve.ClientID %>");
alert(wb.Enabled);
c_wbRetrieve().Enabled = "false";
alert(wb.Enabled);

In this case the first alert shows "true" and the later alert shows "false" as expected. However the web button does not become disabled. It can still be pressed.

So probably I have to call a SetEnable() og SetDisable() or whatever. How should I know as I can nowhere find the Javascript documentation for WebButton. 

All times are GMT -5. The time now is 6:48 PM.
Previous Next