[rt-users] javascript hideshow function

Ruslan Zakirov ruslan.zakirov at gmail.com
Thu Apr 27 20:49:20 EDT 2006


This function doesn't follow standard and has been changed in RT-3.5 branch.

On 4/27/06, Sterpu Victor <victor at ambra.ro> wrote:
>
> I use mozilla and the hideshow function sometimes does not work.
> The chunk always dissepears, but sometimes I can't make it appear back.
> I don't have this problem in internet explorer.
>
>
> This is the function:
> function hideshow(num) {
>     idstring = "element-" + num;
>     chunk = document.getElementById(idstring);
>     if ( chunk.style.display == "none")  {
>     chunk.style.display = chunk.style.tag;
>     } else {
>         chunk.style.tag = chunk.style.display;
>         chunk.style.display = "none";
>     }
> }

--
Best regards, Ruslan.


More information about the rt-users mailing list