I've always been partial to dashboards and often write about it. I've done a number of prototypes just to experiment with visualizations.
Dashboards allow you to organize and see the information you want without adding too much clutter.
Here's my implementation. It works in IE, Firefox, Safari and Opera.
I particular like the visualizations found in the iGoogle and Newsvine dashboards. They provide nice feedback on the container that you're moving and where you'll drop it. So, I've copied that.
When you move a container, everything is **real** size -- not a sliver for where you'll drop the container. For me, the argument that you cause too drastic of a visual change to the layout doesn't hold water.
You're only moving one container at a time and it's not a common operation. You basically move a container, get it into the fold and view it.
You're also only dealing with a **few** containers. This is a dashboard.
The key to the implementation is controlling the container's drag over behavior. Each container needs to react to the container that's being dragged over it. So, pick a library that the supports such behavior ( you can pick Bindows, but keep in mind that if you do, you won't be able to see the dashboard if you turn JavaScript off; of course, with any library, turning it off means that there's no behavior at all! ).
My implementation uses YUI 2.3 which easily handles drag over with the drag and drop library.
In this case, a drag over, inserts a temporary marker above the container.
When you drag out, the marker is removed and the container list collapses ( each container is statically positioned ).
All of the JavaScript is really short and pretty much self explanatory. Run the example and view the source. Use and improve it.
Have fun!
Showing posts with label newsvine. Show all posts
Showing posts with label newsvine. Show all posts
Sunday, November 18, 2007
Subscribe to:
Posts (Atom)
