-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help getting repaint to work on ajax added content #17
Comments
Hi sincero, actually a .scrollbar('repaint') should do the job. Regards, |
Hello & thanks for replying. I think I figured it out, but in my opinion, it's sloppy lol. I kinda worked around it with an onmpuseout repaint. But like you said, I want it to do it after the success of the added content. I'm going to send you the Ajax part of my Wordpress/buddypress function that's adding the dynamic content right now Thanks for this, I really appreciate it On Nov 13, 2011, at 6:38 PM, [email protected] wrote:
|
its a total of 3 parts i'll need it in each is for a diferent call: /* #1 Load more updates at the end of the page */ if ( null == jq.cookie('bp-activity-oldestpage') ) var oldest_page = ( jq.cookie('bp-activity-oldestpage') * 1 ) + 1; jq.post( ajaxurl, { target.parent().hide(); return false; // #2 Activity "Read More" links var inner_class = type == 'acomment' ? 'acomment-content' : jq.post( ajaxurl, { return false; /* #3 AJAX send reply functionality */ var button = jq("input#send_reply_button"); jq.post( ajaxurl, { 'content': jq("#message_content").val(), if ( 'ASC' == order ) { jq("div.new-message").hide().slideDown( 200, function() { return false; and those are the ones On Sun, Nov 13, 2011 at 10:46 PM, Rashamere [email protected] wrote:
|
Hi sincero, I did some investigations to check if dynamic content works together with the scrollbar plugin. Unfortunatelly it does not - at least not without some extra refactoring on your given code. To solve this usecase, I have do some refactorings of the plugin (e.g. change the HTML structure of the scrollbar components). The objective of ths plugin is still to use it an unobtrusive manner: you should not be forced to change a given HTML structure or CSS definitions to apply a custom scrollbar. Regards, |
Hello there! Actually I got it to work in the Ajax call, for two of the three I listed. The other one, I'll see if I can find a work around. I still appreciate the help though ;) you can close this as fixed too. I have one more question though, do you have any plans to update this to the newest jquery? I ran the latest version, and the scroll bar crashed. Thanks! Iamsincere On Nov 23, 2011, at 5:50 AM, [email protected] wrote:
|
Im trying to figure out how to get the scroll bar to 'repaint' after content is added to my container via ajax. Im working with wordpress and I used the line:
$('#mydiv').scrollbar('repaint');
right after the ajax call, but i get nothing. think you could help me out?
Thanks :)
The text was updated successfully, but these errors were encountered: