How to always go to Top of Page

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
User avatar
ronwill
Veteran Member
Posts: 228
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 - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

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);
})

User avatar
ronwill
Veteran Member
Posts: 228
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 - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

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