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 ;-)
0 Comment(s)
Jump to comment form | trackback uri