ajax load kills jscrollpane

74 views
Skip to first unread message

seanskilling

unread,
Apr 9, 2012, 4:18:50 PM4/9/12
to jscrollpane
i know you have examples for how to do this, and i feel like an idiot
for not being able to work it out, but i am trying to go live with
this site and smashing my head against the wall stopped helping so
here goes:

http://nezumi.pair.com/skilling/demo_site/newmilhistsoc/collection/indexa.php

the dynamic load of the content disables the scrollpane and i cannot
for the life of me figure out where the reinitialize call should go.

thanks

Andreas Danielsson

unread,
Apr 10, 2012, 5:03:41 AM4/10/12
to jscro...@googlegroups.com
Hi,

When you have loaded in all and insertet into the page.

$.get('ajax/test.html', function (d) {

    // all the data has been loaded. time to insert into the page
    $('.result').html(d);

    // it's done then reinitialize jScrollPane
    $('.result').find('div.scroll-content-1').data('jsp').reinitialise();

});

with best regards
Andreas Danielsson



--
You received this message because you are subscribed to the Google Groups "jscrollpane" group.
To post to this group, send email to jscro...@googlegroups.com.
To unsubscribe from this group, send email to jscrollpane...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jscrollpane?hl=en.


Reply all
Reply to author
Forward
0 new messages