You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by wi...@faustas.de on 2012/03/23 14:13:12 UTC
AjaxPagingNavigator does not scroll to top
Hello,
I use an AjaxPagingNavigator for clicking through my results. I have a list and the AjaxPagingNavigator below it. When I click on the AjaxPagingNavigator, the next results are displayed but the scrollbar of the browser stays at the bottom of the page.
Is that a normal behavior? Can I do anything to start at top of the list when I click on the AjaxPagingNavigator?
Thanks,
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxPagingNavigator does not scroll to top
Posted by Andre Schütz <wi...@faustas.de>.
Thank you for the answer. Works perfectly.
On Fri, 23 Mar 2012 15:18:22 +0200
Martin Grigorov <mg...@apache.org> wrote:
> Hi,
>
> Yes, it is normal. This is left to the application to decide whether
> it wants to scroll or not.
> You can use ajaxRequestTarget.appendJavaScript("scrollTo(0. 0)") to
> accomplish that.
>
> On Fri, Mar 23, 2012 at 3:13 PM, <wi...@faustas.de> wrote:
> > Hello,
> >
> > I use an AjaxPagingNavigator for clicking through my results. I have a list and the AjaxPagingNavigator below it. When I click on the AjaxPagingNavigator, the next results are displayed but the scrollbar of the browser stays at the bottom of the page.
> >
> > Is that a normal behavior? Can I do anything to start at top of the list when I click on the AjaxPagingNavigator?
> >
> > Thanks,
> > Andre
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
--
Andre Schütz <wi...@faustas.de>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxPagingNavigator does not scroll to top
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
Yes, it is normal. This is left to the application to decide whether
it wants to scroll or not.
You can use ajaxRequestTarget.appendJavaScript("scrollTo(0. 0)") to
accomplish that.
On Fri, Mar 23, 2012 at 3:13 PM, <wi...@faustas.de> wrote:
> Hello,
>
> I use an AjaxPagingNavigator for clicking through my results. I have a list and the AjaxPagingNavigator below it. When I click on the AjaxPagingNavigator, the next results are displayed but the scrollbar of the browser stays at the bottom of the page.
>
> Is that a normal behavior? Can I do anything to start at top of the list when I click on the AjaxPagingNavigator?
>
> Thanks,
> Andre
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org