2

I want to call ajax function while scrolling inner scroll and append the results at the bottom of the existing results.

For refrence I've attached an image here.

enter image description here

How can I achive this?

Dharman
  • 26,923
  • 21
  • 73
  • 125
Vamsi
  • 853
  • 1
  • 7
  • 16

1 Answers1

0

You can use something like this without jQuery also

  window.onload = function(){
     if(window.addEventListener){
        document.addEventListener('DOMMouseScroll', moveObject, false);
     }

    var myDiv = document.getElementById("myDiv");
        myDiv.onmousewheel = ajaxFunction();
    }  
sajay
  • 285
  • 1
  • 2
  • 11