… what if I want to smooth scroll from anchor from another page to a page with dynamic data?
So passing the id back to the list page via a #ancor id… and then the page must scroll to that id’s location
I have a listing page with say 500 records on the page where i have a click to edit button.
page-with-ids.php
This takes me to a edit form.
edit.php?id=3753
after the edit the form they will go back to the list page via.
page-with-ids.php?pos=3753#3753 with the id and #anchor
Here you will now see the ID is now #4150 but how do i get it to go there…
But it does not go back to the position on the page when the page loads… Only once the page is loaded and i then press enter in the url bar… then it takes me to that position. I have also added a button to the top of the page to say “Continue to load” … and when you click on it it works.
I guess it could be a setting on the Selector? rather from a URL than a HREF???
I could not find anything in die documentation about smooth scroll… can anyone maybe help?
As im passing the #id back via a url and not a href on the page itself.
Last updated: