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].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to