CodeChargeMVP
Posts: 473
|
| Posted: 12/30/2010, 5:01 AM |
|
Hello,
I developed a function hide/show rows with javascript and dhtml last june and now
I�m reviewing it and I�ve find some dummy mistakes,
�Could you give me some suggestion by improving the logical function?
this is the call to the function:
OcultarFila(true,8,11)
this is the function:
function OcultarFila(funcionalidad,FilaIni,FilaFin)
{
estado = funcionalidad ? "" : "none";
for(fila=FilaIni; fila<=FilaFin;fila++)
{
window.document.getElementById("contenida").getElementsByTagName("tr") [fila].style.display = estado;
}
//cambiarsigno(FilaIni,FilaFin);
}
The function runs on the onclick event of a button showing the hidden rows, well, now I want
than on the second click hide the rows again and that way, I did it calling to another function
cambiarsigno() which now is commented, I�m stuck cause the calling to the function is
always true so it never changes, �any suggestion by resolve it?
Thank you very much in advance.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 01/03/2011, 1:53 AM |
|
I´ve solved it, if anyone is interested on the solution, please send me a private message.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
|