- Hi Alex,
It sounds like you want the HTMLElement "scrollIntoView()" method:
Alessandro Vernet wrote:
> Hi Gopal,
> Gopal Venkatesan wrote:
>> AFAIK there is not anything in YUI for doing this using a single method,
>> but it is very easy to do otherwise.
>> You can do this using "named anchors".
>> Here's a quick example:
> generate a link and tell the user to click on that link. I would like to
> just scroll there, for instance upon on some condition depending on what
> Ajax response I receive from the server.
> But I see there is a window.scrollTo(), which should do the trick. And you
> can find the position of an element with YAHOO.util.Dom.getXY(). So I think
> we're good on this one!
- Hi Matt,
Matt Sweeney wrote:
>That is even simpler! Somehow I missed that method. Thank you!
> It sounds like you want the HTMLElement "scrollIntoView()" method:
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
View this message in context: http://www.nabble.com/Scrolling-to-HTML-element-tf4159544.html#a11938492
- On 7/31/07, Matt Sweeney <msweeney@...> wrote:
> It sounds like you want the HTMLElement "scrollIntoView()" method:It's almost midnight on a really rough day, so I could be WAY off, but
isn't this kinda what you're looking for:
Jason Lee, SCJP
Software Architect -- Objectstream, Inc.
JSF RI Dev Team