Comunidad de diseño web y desarrollo en internet online

Problema con enabled de botones

Citar            
MensajeEscrito el 14 Sep 2006 12:12 am

function mifuncion() {
for (var i = 1; i<5; i++) {
_parent['btn'+i].enabled = false;/////esta linea
}
}

Bueno viendo el codigo anterior se ve que se desabilita los botones de un nivel superior. Pero cuando quiero desabilitar con el mismo codigo los botones que estan en el mismo nivel ya no funciona.

function mifuncion() {
for (var i = 1; i<5; i++) {
['btn'+i].enabled = false;/////asi ya no funciona!!!!!!!!!!
}
}

porfa ayudenme, gracias

Por nova

13 de clabLevel



 

firefox
Citar            
MensajeEscrito el 14 Sep 2006 12:40 am
this['btn'+i].enabled = false;

^^

Por Zguillez

BOFH

10744 de clabLevel

85 tutoriales
17 articulos
3 ejemplos

Genero:Masculino   Bastard Operators From Hell Héroes Team Cristalab Editores

BCN

firefox
Citar            
MensajeEscrito el 14 Sep 2006 03:06 pm
Creo k tengo k pasar con un cheke por tu ksa jeje esk me estas ayudando mucho :wink: gracias amigo Zguillez

Por nova

13 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.