Archive for January, 2007

DHTML Tree Structure (Revisited)

Wednesday, January 31st, 2007

My first attempt at creating a lightweight tree structure for the web worked great for any browser that supports CSS child selectors, which includes most modern browsers. I had, of course, failed to take into account IE6′s lack of support for this particular nuance of CSS’s specification.

Not to be deterred, I rebuilt the entire thing, and came out with another neat implementation, which now works quite happily in all major browsers, quirks ‘n’ all.

Source code is available here

sudo chown -R www-data /

Tuesday, January 30th, 2007

I strongly advise you never to type this command on a *nix machine.

It’s taking me a long, long time to restore the machine to it’s original state…

DHTML Tree Structure

Tuesday, January 16th, 2007

Update 30th Jan 2007
I was planning to update this post soon anyway, however following the unfortunate chown incident yesterday, I have been forced to hide the treeview demo on this page.

It came to my attention recently that whilst the treeview code worked perfectly on Firefox, and IE7 when a doctype was specified (pretty much any doctype worked), there were still a few problems. Unfortunately, IE6 (or IE7 in quirks mode) does not support CSS selectors, therefore the tree failed to render and behave correctly. I have re-written the code to allow the tree to work under these conditions – see this post.

Read the rest of this entry »