3.0 beta 2

set Control Visible?

I am trying a button. I need to show or hide it dynamicly. I tried

button.setControlVisible(false);
button.refresh();

and

button.setStyle("visibility", "hidden");
button.refresh();

They all don't work. What did I miss?

Thanks,
mrhsh
May 7,
Shuld work, did you tested on a clean page?
Just try:
var obj = new AW.UI.Button;
obj.onControlClicked = function(){
this.setStyle("visibility", "hidden");
}  
document.write(obj );

Carlos
May 7,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.