Using "Scroll Area" in Dashcode

Due to my increasing boredom for studying (yeah: physics, computer networks and probability stuff) I restarted my development of the class schedule widget. I coded the first draft of the widget by hand back in November 2006. By now, Apple has released it's Dashboard development suite Dashcode and I decided to build my second draft with it.

Dashcode itself is still in the beta stage but it makes widget development already much easier. One good example is the use of the Scroll Area control:
You simply have to drag the "Scroll Area" control from the library to your widget, change the position, size and whatever.. but the tricky part comes with dynamic changing it's content. After a quick search in the Apple mailing lists I solved that problem as well:
// updating scrollarea
document.getElementById("content").innerHTML = myNewContent;
document.getElementById("scrollArea").object.refresh();

Sweet, isn't it ;-)