i want to scroll table or div with javascript for paging. So how can i track scroll bar or custom scroll bar and renders table records dynamically as user scrolls up or down.
Please help me for this.

Member Avatar for langsor

You will have to do the math yourself, based on the size of the table rows ... but here is a tutorial on one of my favorite sites.

Search the page for this sub-heading: Element position with scrolling offsets
http://www.howtocreate.co.uk/tutorials/javascript/browserspecific

Enjoy

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.