Widget Doodad
Answers.com says that doodad is a synonym for widget. It also lists gimmick and contrivance, but I don’t want to complain as much as my last post.
Last Friday I took the time to update my computer to OS X 10.4, which brings with it Dashboard. I don’t have much to say about how new or not new putting JavaScriptlets on your desktop is or is not, but the installation and moving over of my files went smoothly enough that I decided to make my own Widget. I started trying to make a widget that displays a Flickr badge by generating the request that you get from their nice badge creation page, but the problem with that is it comes in as javascript code that you embed in a page, which is not easy to dynamically update. After only having something partly working I decided to rethink the whole thing. Now I use our friend the XMLHttpRequest to pull the RSS 2.0 feed and pull the title, image, and link out of that. Easy. Well, mostly easy.
Whatever part of OS X that does the HTML/CSS/JavaScript, I think it’s WebKit, is a little quirky to my understanding of xhtml. It seems that <div/> is not the same as <div></div> which is also treated differently than a div followed by a new line followed by the closing div.
Hmm, how about some of this drag and drop magic in a Dashboard Widget?