Reputation: 97
Can you tell me how to implement it. I have working ajax which output divs one below other. I called jscroll on container div but nothing happens...
$('#container').jscroll();
Upvotes: 2
Views: 582
Reputation: 11
I actually had the same problem when i started. First i updated my jquery because jscroll is supported by jquery v1.4.3+ . Thats when i got to your problem and to solve that you just define a height and overflow:auto to the container.
#container{
height:100px;
overflow:auto;
}
The reason everything loads at once is because there is no restriction on the height.
uhmm..this is to answer the problem of 100 results all showing up at once.
Upvotes: 1
Reputation: 242
Jquery
toggle
$("button").click(function(){
$("p").toggle();
});
or
jQuery mousedown()
$("div").mousedown(function(){
$(this).after("Mouse button pressed down.");
});
should do but i dont know anything about jscoll have u made sure u imported the jquery library
Upvotes: 1