Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8301455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:57:32+00:00 2026-06-08T16:57:32+00:00

I have added Facebook’s like button inside the first tab of a JQuery Tools’

  • 0

I have added Facebook’s like button inside the first tab of a JQuery Tools’ tabs.

When the page is loaded the first tab opens and Facebook’s like button appears, this works as expected, but when you click on the second/third/… tab and then return to the first tab, Facebook’s like button does not appear any more…

The following is what I added to the first tab for the addition of the like button:

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

and placed the following code where I want the button to appear in the first tab:

<div class="fb-like" data-href="http://www.mysite.com/example/thisPage" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false"></div>

Any idea what’s happening here, and how to reload the like button every time the first tab is loaded?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T16:57:37+00:00Added an answer on June 8, 2026 at 4:57 pm

    I’m guessing this has to do with AJAX and of course you need to reload the FB button after you call it in with AJAX. Add this to the end of your function to reinitialize Facebook and load the Like button:

    FB.XFBML.parse();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a page in facebook. I have added a couple of tabs
I have added the XFBML facebook like button. It shows fine in Chrome and
I have a page on my website that I have added the Facebook like
I have created a business page on facebook and added application to a tab.
I have created this fan page http://www.facebook.com/pages/ohlala/327385737341 and added an application on tab "Special
I have created a Facebook app, added it to a Facebook Fan page and
i have added facebook share button on my site, by clicking on that button
We have a facebook page.in which we have added a Static FBML App http://www.facebook.com/apps/application.php?id=4949752878.We
I have added a facebook button to my company's site so that people can
I have added a like button using iFrame for the site and added the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.