Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: change CommandButton img in javascript???
Re: change CommandButton img in javascript???
06-02-2005, 2:02 PM
aaauuummmm
Joined on 04-30-2005
Posts 12
Re: change CommandButton img in javascript???
Reply
Quote
No worries. I figured it out. I created two command buttons and then wrote javascript to hide one or the other depending on the state. The only trick was recognizing that the cute software will prepend a "cmd_" to the ID of the img tag of the command button.
In short, the javascript to hide a button looks something like...
document.findElementById('cmd_MyButtonCommand').style.display='none';
and to restore
document.findElementById('cmd_MyButtonCommand').style.display='';
Is there a better way?
View Complete Thread