Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jScrollPane dynamic content

i was trying to use the follow jquery plugin: http://jscrollpane.kelvinluck.com/dynamic_content.html
but i'm still no success when i try to reinitialize the API

I have a div (id=content) which receives the response from load() method (jquery), after all, I use $('#content).jScrollPane() again to refresh the scrollbar, but no success =\

can any one help me? thanks!

like image 300
davi Avatar asked Apr 22 '11 15:04

davi


1 Answers

A quick google yields the following from

http://jscrollpane.kelvinluck.com/dynamic_content.html

function refreshNav() {
    var pane = $('YOUR SELECTOR');
    var api = pane.data('jsp');
    api.reinitialise();
}

Works very well......

like image 124
pixelvoid Avatar answered Sep 28 '22 01:09

pixelvoid