If it's not too late for 0.9, I'd like to bring up the idea of a
gadgets.window.scrollTo() method. The function would take a single
string as an argument and instruct the container to scroll the global
viewport so that the element with the corresponding ID (in the
gadget's IFrame) will be visible.
The justification for this proposal came from developing a gadget with
views that greatly exceeded the height of the browser's viewport, and
my desire to include a table of contents to allow users to jump
directly to sections of the content lower in the page (imagine a very
tall "help" page).
Page fragment links and window.scrollTo do not work for this purpose
because many containers use the page fragment for storing information,
and window.scrollTo is limited by the browser's cross-domain policy.
Note that a similar function was proposed earlier here:
http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/33c834732265a8a0/d180b7af3fc870bd?lnk=gst&q=scroll+to#d180b7af3fc870bd
but I was unable to reply to the thread (threads close after 30 days
or so of inactivity). To preserve that request, I'd suggest that the
default behavior of gadgets.window.scrollTo be that if a null or empty
string is passed to the method, the container scroll the global
viewport to the top of the rendered page. This would allow developers
to place ("back to top") links in their applications.
~Arne