logo
down
shadow

URL for Google Plus and Twitter -share doesn't change after ajax load


URL for Google Plus and Twitter -share doesn't change after ajax load

By : Jack
Date : November 17 2020, 11:58 AM
help you fix your problem I have a WordPress website using Advanced Ajax Page Loader. On various pages I have a URL share function for Facebook, LinkedIn, Twitter & Google Plus. When clicked the Facebook & LinkedIn button share the current URL - The Twitter & Google Plus buttons only share the URL of the main website (root), unless the page is refreshed. , I solved the Tweet button by using:
In the header
code :
<script src="//platform.linkedin.com/in.js" type="text/javascript">lang: nl_NL</script>
<a href="<?php the_permalink(); ?>" data-url="<?php the_permalink(); ?>" class="twitter-share-button" data-lang="nl"></a>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js" async defer></script>

<script>{"parsetags": "explicit"} function renderWidget() { gapi.plusone.render("google" ); } </script>
<div class="google">
  <g:plusone href="<?php the_permalink(); ?>"></g:plusone>
</div>


Share : facebook icon twitter icon
How to get Google plus share in popup like Twitter?

How to get Google plus share in popup like Twitter?


By : BJ Stanton
Date : March 29 2020, 07:55 AM
should help you out The JavaScript window.open method will open a new window. You can combine this technique with the share link to accomplish your goal. Here's an example of this technique lifted from the official docs. Just substitute your target url for http://example.com.
code :
<a href="https://plus.google.com/share?url=http://example.com"
  onclick="javascript:window.open('http://example.com','',
  'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');
  return false;">
  <img src="https://www.gstatic.com/images/icons/gplus-64.png" 
    alt="Share on Google+"/>
</a>
Can you link a Google+ share to a Google+ account, like you can on Facebook and Twitter?

Can you link a Google+ share to a Google+ account, like you can on Facebook and Twitter?


By : vbXhaiden
Date : March 29 2020, 07:55 AM
JQuery AJAX .load - flash chart doesnt load in IE

JQuery AJAX .load - flash chart doesnt load in IE


By : Joseph8282
Date : March 29 2020, 07:55 AM
hope this fix your issue Have you tried specifying jQuery's $.ajax "cache" option to false? IE caches pretty aggressively (I've seen it cache .jsp files.), so I wonder if jQuery knows how to get around this natively.
Can't load twitter share button via Javascript

Can't load twitter share button via Javascript


By : JonKerb
Date : March 29 2020, 07:55 AM
it should still fix some issue Are you using Turbolinks, PJAX, or other similar gems in your project? If so, refer to this thread:
How to update Facebook/Twitter share button URL after AJAX?

How to update Facebook/Twitter share button URL after AJAX?


By : Chris Fox
Date : March 29 2020, 07:55 AM
I wish this help you Twitter and Facebook both create iframes when they render their share buttons, which means you cannot affect them directly. What you need to do is reload the buttons entirely, removing the previous ones and replacing them with new ones. Here's how I do that:
In your html file, you prepare to load the buttons:
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org