Hello,
My problem is that two of social buttons (twitter and google+) hide when the front page is paging via ajax. There is no problem when paging is normal.

Comments

alexweber’s picture

Could you please provide more information, are you using Views ajax, ahah?

Thanks!

isagarjadhav’s picture

Version: 6.x-1.2 » 7.x-1.0-beta5
Priority: Normal » Major

Easy social buttons dont load in ajax.

alexweber’s picture

Version: 7.x-1.0-beta5 » 7.x-2.x-dev
Assigned: boychev » Unassigned
Status: Active » Postponed (maintainer needs more info)

I can't replicate this!

Could you please give step-by-step instructions to replicate this bug please so we can fix it?

isagarjadhav’s picture

Need to add lines in your AJAX where you process server response -
for twitter -

$.getScript('http://platform.twitter.com/widgets.js');

and

for google -

if(gapi) {
		  gapi.plusone.go();
        }
pikot’s picture

Where I have to add these lines? In a field in the view?

KarinW’s picture

I would also like to know where to add these lines. I have Easy Social in a block region that is designed for search fields. It's the only logical place to put them, but they often don't show. Could this be related to them being placed in a block region for search?

pradeepnarayana’s picture

can someone tell where i need to add #4 solution in the module ?

isagarjadhav’s picture

Issue summary: View changes

Sorry for delayed response. Issue is not related to this module but the way twitter and google widgets render their plugin asynchronously. You need to add lines in your AJAX where you process server response. That is if you are using custom module and writing your own ajax handler through jQuery code written above will go under response handler of that ajax request.

For Ajax request generated by Drupal Module it would go under -
(function ($) {
Drupal.behaviors.module_that_invoked_ajax = {
attach: function (context, settings) {
$.getScript('http://platform.twitter.com/widgets.js');
if(gapi) {
gapi.plusone.go();
}
}
};
})(jQuery);

Hope this helps.

isagarjadhav’s picture

Assigned: Unassigned » isagarjadhav
Status: Postponed (maintainer needs more info) » Closed (won't fix)

Bug is related to ajax handler and not this particular module. Twitter and google render their widgets asynchronously. That's why we need attach twitter and google widget instance after each ajax request is processed so that these 2 widgets render correctly.