How can I automatically execute a JavaScript function when the user reaches a specific position on the page?
When I scroll down to the bottom of the page, an AJAX-call shall be executed that loads more content so that you can scroll down further.
Nothing should happen if the user scrolls down and then scrolls up again by the same distance.
This is the call of the ajax function that I have and want to execute:
refresh('refresh_status', 'refresh_status.php', '', '', '', 'refresh');