Sunday, March 11, 2012

AJAX scrollbar pagination?

Hello,

You can use div for getting scroll bars like you have on live.com.

<div id="Div1" style="overflow: -moz-scrollbars-vertical; overflow: auto; overflow-y: scroll;height: 100px; width: auto"
<!-- YOUR CODE GOES HERE -->

</div>


You can change the height and width according to you requirement.

Thanks,

Deepesh Verma


How would you detect that it's time to retrieve the next page of results? Is there a way to find out where the scrollbar is positioned?

Thanks,
John


I thought the AjaxControlToolkit had a slider control that did this sort of thinghttp://www.asp.net/AJAX/AjaxControlToolkit/Samples/Slider/Slider.aspx.

I haven't needed to use it yet but it'll probably meet your needs. If not, then you could create your own with a div and a scollbar, and use the onscroll event to call some javascript that gets the scroll position (obj.scrollLeft etc.) and calculates what page should be displayed.

No comments:

Post a Comment