Re: change CommandButton img in javascript???

  •  06-02-2005, 2:02 PM

    Re: change CommandButton img in javascript???

    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