[Project_owners] Disable OK button in dialog

Gustavo Bittencourt g.bitten at bol.com.br
Thu Mar 18 16:20:53 EST 2004


> Gustavo Araujo Bittencourt <g.bitten at bol.com.br> wrote:
> 
> >I am sure there is a very obvious way to
enable/disable OK button in 
> >dialog via javascript.
> >I tried this:
> >  
>
>document.getElementsByAttribute("label","OK").item(0).setAttribute("disabled",

> >"true");
> >  
>
>document.getElementsByAttribute("label","OK").item(0).removeAttribute("disabled");
> >But returned error
> >
> >TIA,
> >Gustavo Bittencourt.
> 
> What dialog (URL) is that?
> 
It is chrome XUL that I want to overlay in Mozilla suite:
chrome://global/content/nsHelperAppDlg.xul

 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/




More information about the Project_owners mailing list