[Project_owners] Disable OK button in dialog

Biju G C bijumaillist at yahoo.com
Thu Mar 18 18:18:14 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.if no other technique works:-

you can throw an exception in "ondialogaccept" 
and it will not take action.
(warning !! not  the right way to do)




	
	
		
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html


More information about the Project_owners mailing list