Hi JD, your "problem" looks like a perfect example for the qooxdoo event system. 1st: I'm using qooxdoo 0.6.6, so there might be some differences to your 0.6.5 version of qooxdoo, but I think they are minor. 2nd: Do not take all the code below "without any change". I've just typed it in my message; so no syntax check provided ;)
So here's my opinion: You should "fire" a user data event in the inner widget: ------------------ if (somethingHappened) { this.dispatchEvent(new qx.event.type.DataEvent("yoohooo", ["foo" ,"bar"])); } ------------------ and then of cause implement the fitting event-listener in the "outer" widget: ------------------ this.addEventListener("yoohooo", function(e){ fooBarArray = e.getData(); /*...*/ }, this); ------------------ The name of the event I choose here is "yoohooo", but I hope you will find a more fitting one ;) The additional data (array) at the event dispatching is just added for fun, you don't need it. But of cause you can use it to distinguish different "yoohooo" events in the event-listener... Hope it helps, Peter > I need to be able to take a scrollable widget and force the scroll bar to go > back to the top. > > say I scroll all the way down. There is another widget within the first > widget that I click to do something, and upon clicking it I want the outer > widget to scroll back up to the top. It seems simple enough, but I can't > find any sort of way to do this. Any help is much appreciated. Dirty hacks > welcome. > > I'm using the namespaces branch, qooxdoo 0.6.5 > > - JD ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel