I'm not sure that it'd be easy to do that, given there's no explicit access to the Wave client's DOM. There would presumably have to be a gadget inside the page that was able to reach into the parent frame, find the wave div, and scroll that down. I don't think that an iframe can manipulate that much of the outside.
Alternatively, a wave could me embedded, and that might make it easier to manipulate the embedded wave. Either way, its hacky. I would recommend making sure the blip-to-be-focused is unread, as then atleast people can easily spacebar to it. (And maybe one day the client will notify them of it). - pamela On Wed, Feb 17, 2010 at 2:13 AM, Chris <[email protected]> wrote: > Oops, that would be 50 pixels five times. *blush* > > > In ALL things, strive for ><>, > Chris > > > On Tue, Feb 16, 2010 at 9:11 AM, Chris <[email protected]> wrote: > >> You'll probably have to insert some JavaScript into the page and run it, >> as I doubt Google's API offers anything to do this directly. See these >> pages: >> http://javascript.wikia.com/wiki/Window#scroll >> http://www.quirksmode.org/js/findpos.html >> >> So you use the script at the second link to find the element's position >> and the function at the first link to send the browser there. If you want >> the wave to scroll smoothly, you can scrollBy a certain increment until you >> reach the element. That increment could simply be a fraction of the >> distance to the element, or a constant speed. For example, if the element >> is 280 pixels down the screen you could scrollBy 50 pixels every half a >> second, three times, and then 30 pixels (the modulus - 280 % 50). The >> function to separate the calls to scrollBy would be window.setInterval: >> http://javascript.wikia.com/wiki/Window#setInterval >> >> In ALL things, strive for ><>, >> Chris >> >> >> >> On Mon, Feb 15, 2010 at 8:23 AM, vincent donzé >> <[email protected]>wrote: >> >>> Hello everybody, >>> >>> I'm making a task manager robot for Google Wave but I encounter a >>> difficulty. I would like to navigate into the wave with java code. I >>> mean, I want to focus the view on a special blip. If the blip is at >>> the bottom of the page, I want the wave to scrol down until it reach >>> the blip. Is it possible ? >>> >>> Thank you >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Wave API" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<google-wave-api%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/google-wave-api?hl=en. >>> >>> >> > -- > You received this message because you are subscribed to the Google Groups > "Google Wave API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-wave-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-wave-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
