JavaScript Windows scroll working on scrolling to the top instead of bottom windows scroll not working,windows scroll doesn't work,

I encountered a challenge when trying to activate autoload on scrolling to the bottom. The problem is that the jQuery doesn't work when I scroll to the bottom but when I scroll back to the top, it works.

I tried testing on 1.8.3 instead of the 1.11.1 I was using, the two are actually compressed.

I'm new to jQuery and would appreciate anyone who can assist me. I however tried testing the autoload on another computer and it works fine.

Below is the code

function auto_loader(){

    $(window).scroll(function()
    {
        if($(window).scrollTop() + $(window).height() == $(document).height())
        {
              // load your content
              alert("\ola");
        }
    });

}
Answer:1

i am pretty new to javascript and doing a course to gain some experience but i am breaking my head on the return concept sometimes. Basically this is the task i am stuck at: There is an array of ...

i am pretty new to javascript and doing a course to gain some experience but i am breaking my head on the return concept sometimes. Basically this is the task i am stuck at: There is an array of ...

I have created a objects in .less, and i have created a few buttons in a php file, when the button is clicked in the php file I want some of the objects to hide. Here is my php code <label for="...

I have created a objects in .less, and i have created a few buttons in a php file, when the button is clicked in the php file I want some of the objects to hide. Here is my php code <label for="...

  1. function hides a non virtual function
  2. function hides a non-virtual function from class
  3. function hide password in c
  4. function hide javascript
  5. function hide show javascript
  6. function hide div
  7. function hide show jquery
  8. function hide and show
  9. function hide js
  10. function hideurlbar
  11. function hide div javascript
  12. function hide excel
  13. function hide row excel
  14. function hideurlbar() window.scrollto(0 1)
  15. function hide php
  16. function hide modal
  17. function hides inherited member
  18. function hide button
  19. function hide c++
  20. function hide html

I have response object i just assigned to "this" object. private data: Object = {}; this.http.post('url', { }) .subscribe( res => { console.log(res); this.data ...

I have response object i just assigned to "this" object. private data: Object = {}; this.http.post('url', { }) .subscribe( res => { console.log(res); this.data ...

  1. that does access mean

What do I need to add so that when a user clicks on the Current Period button, the entire area (which is shaded in the second image for clarity) is replaced with the content of the page controlled by ...

What do I need to add so that when a user clicks on the Current Period button, the entire area (which is shaded in the second image for clarity) is replaced with the content of the page controlled by ...