Back to top

Hi,
I have a dilemma and my client is starting to doubt my ability, despite creating a fairly sophisticated and beautiful website.

The website in question is here: www.mastersgolfcarts.com

Under the inventory link, we have inventory index pages being pulled from a database collection. The pages are ALSO paginated displaying only 10 items at a time.

Here’s my dilemma. As you view these paginated pages, I need to push the user back to the top. As it sits right now, you remain at the BOTTOM of each screen. I’ve already tried a few different ideas, none of which worked. For now, I resorted to a “Back to top” button, but that is not a proper solution.

Does anyone have any ideas on how to get these pages pushing back up to the top. As always, I’m pre-thanking anyone who takes the time to try to help.

Ouch - I’m not sure if you can code a reset-to-top function. :frowning:

I’ve run into problems with the pagination element doing the same before. The most reliable solution I’ve found is simply to create my own pagination elements with some vector art and numbers, because for some reason the event listeners for pagination items rarely work. Then you can use scrollTo to go back to the top of the list.

Thanks - this is good feedback!

This won’t work well. The client is managing their database and the front-end needs to be dynamic. If they have to start managing all sorts of ‘other’ stuff, it will not be good.

@chris47209 Hey Chris,

They wouldn’t have to manage this manually, it’s just a bit of Corvid is all :slight_smile: It works just like the pagination widget would.

@skmedia Interesting. Unfortunately Corvid is not my wheelhouse. I’ll see if my Wix Developer I use from time to time understands what you are suggesting. Thanks for the idea!