On-topic: HTML/JS help please

Piers Cawley pdcawley-london.0dd185 at bofh.org.uk
Wed Feb 10 10:04:01 GMT 2010

On Fri, Feb 5, 2010 at 10:31 PM, David Cantrell <david at cantrell.org.uk> wrote:
> On Fri, Feb 05, 2010 at 05:13:25PM +0000, Jacqui Caren-home wrote:
>> David Cantrell wrote:
>> >I want to add a Thingy to CPANdeps to let users collapse/expand portions
>> >of the dependency tree.  How would one go about this?
>> >Naively wrapping <tr>s in <div>s and toggling their style.display
>> >doesn't work, presumably because <div> isn't kosher in a <table>.
>> Jquery tree thingy is data driven and works well.
> Unfortunately every pre-existing Javascript thingy I've looked at
> assumes that I have a simple tree.  I don't, I have a *table*, which has
> a hierarchy.

That sounds to me like you don't have a table. You have a tree with
tabular data at each node. Consider using nested divs to represent
your hierarchy and then either cunning styling or one row tables to
display the tabular data. Sure the page might get a bit big, but
that's what gzipped responses are for.

More information about the london.pm mailing list