home / experts / javascript / column97 |
|
Defining the Calling ButtonsSometimes, you may want to disable a button from JavaScript. You need to, for example, when the service called by the button is not available. A Web service called synchronously should not be called again while working on its previous call. Play around with the following two buttons. Toggle the second button with the first one: Here is how the buttons are defined:
The first button toggles the disability of the button below it, through the
Here is the whole JavaScript code:
We defined our Web service calling buttons as follows:
The second button's disability is triggered by the
When the Web service becomes available, the |
Next: Code Listing
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: November 19, 2001
Revised: November 19, 2001
URL: http://www.webreference.com/js/column97/7.html