I ended up adapting the method at Dr. Nic's site for widgets.
It's fairly simple. And it can be made nicer by adding in a call for the widget to load asynchronously. Actually, for my purpose, I needed to generate a whole class of widgets, which meant that the widget itself is generated dynamically. So I was able to simplify the code by getting rid of the second call to the server to get the data.
No comments:
Post a Comment