How to always go to Top of Page

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
ronwill
Veteran Member
Posts: 66
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

How to always go to Top of Page

Post by ronwill » 2018-04-10 03:43

Is there a way to always jump to the top of page when moving from detailed view to tables or back and also when going from menu/home page to tables?

I've found that often (for example where an entry field exists, or search field) that my browser always takes me to the part of the page where these fields are instead of to the top of page, my header etc.

Help appreciated, Cheers, Ron
Ron - AppGini Pro V 5.72 Rev 1036

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: How to always go to Top of Page

Post by R Tammam » 2018-04-16 13:09

Hello ronwill,

you should use in footer-extras.php

Code: Select all

 $(function(){
window.scrollTo(0,0);
})

ronwill
Veteran Member
Posts: 66
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: How to always go to Top of Page

Post by ronwill » 2018-04-22 10:07

Excellent Tammam, works perfectly improved appearance, functionality, thks again
Ron
Ron - AppGini Pro V 5.72 Rev 1036

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: How to always go to Top of Page

Post by R Tammam » 2018-04-28 21:05

you are welcome ronwill , i'm happy that it's working

Post Reply