Drag the boxes, stretch the lines

Update: A nice mention and ensuing discussion of this has appeared with this article at Lambda the Ultimate. I’ve killed trackback here due to spam, so I’m tossing this in manually.

It’s been awhile since I really sat down and tried knocking something out in the browser with JavaScript / DHTML. There was that Greasemonkey thing I did a little while ago, but that’s not quite the same.

So, I suddenly got an urge today to try making a mindmap-ish, boxes-and-lines chart out of some simple nested HTML lists using CSS and unobtrusive JavaScript. I didn’t get all that far toward the original goal–but during the course of exploring script.aculo.us, Prototype, and Behaviour,js I came up with something that I think has potential.

It’s likely to only work on Firefox and Safari, but check it out and drag the boxes around:

http://www.decafbad.com/2005/06/map-test/

View the source, steal anything worth theft, make fun of what’s bad. Oh yeah, and don’t mind the ugly background images too much: They were just some random textures I picked out of The Gimp in order to see just how well the transparency on distorted PNGs worked.

8 Comments

  1. Posted July 2, 2005 at 2:51 am | Permalink

    Nice.. small problem though. When I drag, say the green box, further up outside the scope of the box, the ‘textarea’ seems to expand, but in the wrong direction, towards the bottom. So, I still can’t see the green box even if I use the slide bar.

  2. Jeremy Dunck
    Posted July 2, 2005 at 4:14 am | Permalink

    http://youngpup.net/2001/domdrag

  3. Posted July 2, 2005 at 4:37 am | Permalink

    That’s pretty damn cool.

  4. Quadsk8
    Posted July 2, 2005 at 11:54 am | Permalink

    This would make an interesting interface in combination with TiddlyWiki, an all in one file wiki, where the tiddlers (boxes with microcontent) have reference with each other.
    http://www.tiddlywiki.com/

  5. Posted July 3, 2005 at 12:34 pm | Permalink

    Great. Works also in Omniweb 5.1.1 beta 2

  6. Posted July 3, 2005 at 7:28 pm | Permalink

    Note: Use this to easily create usable and dynamic trails [1].

    [1] http://www.scottmccloud.com/comics/icst/icst-4/icst-4.html

  7. Posted July 5, 2005 at 2:16 pm | Permalink

    Very cool. Works in Camino 0.8.4, BTW.

  8. DaveGarbutt
    Posted July 24, 2005 at 9:53 am | Permalink

    There is a Tiddlywiki with dragand drop of tiddlers.

    It is the version done with ruby-on-rails and there is a free hosting site if you want to try it.

    See http://www.serversidewiki.com/

Post a Comment

Your email is never shared. Required fields are marked *

*
*