This seems like it should be easy to find a tutorial on, but I've tried a half dozen different methods and none are behaving the way I want, and I'm now so annoyed I'm getting desperate.
What I'm essentially trying to do is show/hide a couple of columns in a table, preferably using the CSS display property, with cells identified by their class, and a minimum of hairy javascript (since that degrades very cleanly to just displaying the whole table).
The best pre-made script I've turned up thus far is:
http://www.bytemycode.com/snippets/snippet/595/
...which appears to give exactly what I want, a function that toggles the visibility of all objects in a class. If I change "block" to "table-cell", it appears to work perfectly... in Safari. When I load the exact same page in Camino (1.5) or Firefox (latest) it works occasionally, and the rest of the time does absolutely nothing.
I'm assuming that whatever Javascript engine those are using isn't that horribly broken, so there's something in the script that's choking them SOME OF THE TIME (how the hell do you create an intermittent bug like that?!), but I'm only basically literate in JS so am lost on what.
Is there a nice tidy little script somewhere (or an accepted method) that does this?
What I'm essentially trying to do is show/hide a couple of columns in a table, preferably using the CSS display property, with cells identified by their class, and a minimum of hairy javascript (since that degrades very cleanly to just displaying the whole table).
The best pre-made script I've turned up thus far is:
http://www.bytemycode.com/snippets/snippet/595/
...which appears to give exactly what I want, a function that toggles the visibility of all objects in a class. If I change "block" to "table-cell", it appears to work perfectly... in Safari. When I load the exact same page in Camino (1.5) or Firefox (latest) it works occasionally, and the rest of the time does absolutely nothing.
I'm assuming that whatever Javascript engine those are using isn't that horribly broken, so there's something in the script that's choking them SOME OF THE TIME (how the hell do you create an intermittent bug like that?!), but I'm only basically literate in JS so am lost on what.
Is there a nice tidy little script somewhere (or an accepted method) that does this?