CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 [Resolved - Javascript function HideShowRows]

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.