How can I get a firing/clicking event in XUL scrollbar. I have a box
where, when I refresh the content using DOM creation and deletion, I
want to have user get the top of the page for every DOM refresh.
I tried many tricks with the js like window.scrollTo, etc.. no luck so
far. Appreciate if you have solution/trick for above issue.
thanks
if you want to scroll after updating the box try getting a reference
to nsIScrollBoxObject from your box:
var scrollBoxInterface = yourbox_element.boxObject.QueryInterface
(Components.interfaces.nsIScrollBoxObject);
and calling whichever method (listed here
http://mxr.mozilla.org/seamonkey/source/layout/xul/base/public/nsIScrollBoxObject.idl)
that suits your purpose.
haven't tried this yet myself but came across it trying to figure out
how to do something similar.
pat