Eric Hodel (drbrain) wrote,
Eric Hodel
drbrain

  • Mood:

Writing Dashboard widgets is hard.

So, you don't get any decent debugging support, and you don't get lots of handy widgets like XUL has to do all the hard stuff.

Intstead, alert() writes out to the console, and you can enable Dashboard development mode so you can drag the widget out onto the desktop. So open console and turn on dev mode if you're writing widgets.

That said, here's my first dashboard widget, front and back.

43 Things Dashboard Widget front43 Things Dashboard Widget back

Oh yeah, what does it do? Well, you put in your 43 Things API key and a username, and it tells you how many goals that person has. But, having to apply for an API key rather sucks, and so does pulling the data out of an XML response. So instead, maybe I'll make a DashboardController that zips out text/plain, that way you only have to fill in a username.
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments