On-topic: HTML/JS help please

Magnus Erixzon magnus.erixzon at gmail.com
Fri Feb 5 15:57:08 GMT 2010


On 5 February 2010 15:41, David Cantrell <david at cantrell.org.uk> wrote:
> On Fri, Feb 05, 2010 at 03:14:51PM +0000, Bob MacCallum wrote:
>
>> <tr style="display: none" id="xyz">
>> has worked for me in the past.  why do you need to wrap it in a div?
>> is it not standards compliant?
>
> Because on this page, for example:
>  http://deps.cpantesters.org/?module=Data::Compare;perl=latest
>
> the row for Test::More needs to disappear if I collapse the tree for
> either File::Find::Rule or Data::Compare.  So I tried wrapping each row
> in several <div>s, one for each of the needed ids.

I've found the jsTree jquery plugin quite nice for tree views.
Feed it your data via html, json or xml and you're done.

http://www.jstree.com/demo/basic_html

 /m



More information about the london.pm mailing list