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
  • 30,962
  • 25
  • 85
  • 135
Vamsi
  • 873
  • 1
  • 8
  • 16
  • 3
    You might want to take a look at: http://stackoverflow.com/questions/986763/jquery-how-to-determine-that-a-div-is-scrolled-down – Alvaro Jun 21 '13 at 09:06

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
  • 295
  • 1
  • 2
  • 11