JScrollpane - Dynamic Content?
Hi there.
I'm relatively new to jquery. I've been using the JScrollpane plugin that allows you to customize Div and page overflows pretty neatly. However, I'm having a problem when I change the content of the div the scrollpane has been linked to via .text() or .html().
As you can imagine the desired functionality I require is that the Div the scrollpane has been linked to keep the scrollpane if the div 'overflows'.
However, I am losing the scrollpane upon calling the function that changes the content of my div and would like to know a way to reinitialise the scrollpane on the same .click that I use to change my div content.
Would really appreciate any help. I've been using the standard implementation from -
http://jscrollpane.kelvinluck.com/#usage - initialising the to the .scrollpane class on the initial ready() function.
I've seen a few examples of how dynamic content can be incorporated but haven't been successful in implementing it...Do I need to reinitialise upon every new .click? A little confused as I've tried what seems to be everything, to no avail.
Please help.