jScrollPane

jScrollPane - dynamic content demo page

This demonstration shows how you can manually reinitialise jScrollPane when new content is added to it. Every second we add a new line of content to the scrollpane (using the getContentPane API method) and then reinitialise the scrollpane. As the maintainPosition setting is true by default then the position of the scrollpane is maintained even if we are scrolling while the update happens.

Page javascript

The contents of this div will be replaced by the javascript added to this page

Page CSS

The contents of this div will be replaced by the CSS added to this page