I tried using the following jquery plugin: http://jscrollpane.kelvinluck.com/dynamic_content.htmlbut I still don't have time when I try to reinitialize the API
I have a div (id = content) that receives a response from the load () (jquery) method, in the end I use $ ('# content) .jScrollPane () again to update the scroll bar, but without success = \
Can someone help me? thanks!
Quick google gives the following from
http://jscrollpane.kelvinluck.com/dynamic_content.html
function refreshNav() { var pane = $('YOUR SELECTOR'); var api = pane.data('jsp'); api.reinitialise(); }
It works well ......
... and if you want to update all scrollbars on your site, use this:
function refreshPane() { var pane = $('YOUR SELECTOR').each(function(){ var api = $(this).data('jsp'); api.reinitialise(); }); }
Source: https://habr.com/ru/post/886485/More articles:In wpf, how can I get the following control in tab order - wpfWhere does kernel processes that do not work keep? - linuxReposition public folders in a Zend_Framework project? - publicQuestion of parent parent question with CSS3 - cssCan I use the static method as a menu callback in drupal? - drupalHow to write tagx (JSPX tag libraries without java) - javaHow can I quickly reset the contents of a file? - delphiHow do js mvc libraries like spine, trunk, jsmvc integrate into server-based MVC infrastructure like lithium or zend? - javascriptJava BeanUtilsBean: convert date to string - javaIs it a good idea to combine Ajax / UI JS Framework (ext, jquery-ui) with the MVC PHP framework (zend, symfony)? - phpAll Articles