I am using the List.js library to search and sort a <table> element. The table resides in the main content area of the page after the header, navigation menu, and sidebar. When I sort any of the sort-able columns in the table, the page reloads and jumps back to the top of the page. This is expected, but I am trying to find a way around this so that after the page reloads, it scrolls back to the start of the <table> element (or to an anchor I place there). I basically would love if the page didn't move at all after sorting a column. I have looked through List.js's documentation, but to no avail. Maybe someone out there has used List.js extensively and knows a work-around for this situation.
I have the page up on my staging site right now if anyone wants to check out the problem: http://www.tomclark.info/staging/cca/find-an-acupuncturist.html
List.js library, can the page goto an anchor after sorting?
149 views Asked by Thomas Clark At
0
There are 0 answers
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in SORTING
- Sorting a List by its property renames all the objects in the List
- Does Sort() method in C# use recursion?
- ARM Assembly code is not executing in Vitis IDE
- Creating an efficent and time-saving algorithm to find difference between greater than and lesser than combination
- Heap sort with multithreading
- Laravel Livewire data table sorting livewire update payload
- basic MergeSort exercise
- How to import a range into a variant array in Excel VBA and sort using the sort method?
- Looker Studio | pivot chart - sorting by metric and last month
- how to create an array of multiples of 5 and display it in reverse
- matplotlib sort barh by values
- Custom Sorting Javascript with A-Z set
- Mainframe Programming Sorting, OUTFIL REMOVECC,NODETAIL
- Soft list based on another list
- SQL query : creating table with distinct values on selected columns
Related Questions in PAGE-REFRESH
- Preventing Unintended Refresh Behavior on Non-scrollable Content in a TMS WEB Core App?
- Google Translate not translating without refreshing the page
- receiving information from server when website is refreshed
- Reload problem with Express JS and database
- Get Latest environment varibles for web app update
- React Data Not Loading on First Mount
- In Angular, DomSanitizer and bypassSecurityTrustResourceUrl are not working
- NextAuth refreshes the whole page when session is updated
- Open HTML content on another tab in flutter
- I'm trying to reload a page when a user clicks anywhere on the page body, how can I achieve this?
- React application doesnt rerender after state changes and logins
- The Previous Screen is not getting Refreshed while Using Change Notifier in Flutter
- VueJS static website not doing browser refresh
- Stop page refresh when submitting form
- File loaded from file handle stored in indexedDB does not update when file is changed and page is reloaded
Related Questions in PARTIAL-PAGE-REFRESH
- How to solve HTMX Partial Page Load issue caused by parallel script download?
- Django: how to refresh html content on new database entry
- I am trying to inject an already rendered Django template into a section of my page using AJAX
- Bootstrap in xpages André dojo tab container
- Refresh only a part of webpanel in Genexus every (e.g.) 10 seconds
- Trying to refresh div inside Iframe
- Reloaded DIV content with AJAX and still use AJAX again which is not reloaded
- View last results on Stack Overflow (Or other website) after reload page
- Not getting correct value of BehaviorSubject unless I do a page refresh
- linking to the previous page javascript document.referrer
- refreshing a div using ajax, my div didn't refresh
- Refresh a DIV in Laravel every 5 seconds
- How to check if a radio button is checked or not in jquery?
- Refresh a Fusion block on click of a button wordpress Avada
- page refresh not happening when I am changing the URL from the URL bar : AngularJS 1
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)