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

  • Home
  • SEARCH
  • 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 8013659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:41:34+00:00 2026-06-04T19:41:34+00:00

This displays the comments from that http://domain.com/some/abc <fb:comments href=http://domain.com/some/abc num_posts=20 width=500></fb:comments> <div id=fb-root></div> <script

  • 0

This displays the comments from that http://domain.com/some/abc

<fb:comments href="http://domain.com/some/abc" num_posts="20" width="500"></fb:comments>
<div id="fb-root"></div>
<script type="text/javascript">
(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 = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=1234567890";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>

If the user changes a value in the form from abc to xyz, I need the comment plugin to display comments from http://domain.com/some/xyz without reloading the page.

<form id="name">
    <select>
        <option value="abc" selected>abc</option>
        <option value="xyz">xyz</option>
    </select>
</form>

Is it feasible? (didn’t find any information on the fb dev page.) I’m using jQuery. Thanks!

  • 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-04T19:41:36+00:00Added an answer on June 4, 2026 at 7:41 pm

    Yes, it is feasible; I believe I managed to replicate your desired result here;

    Snippet in case the jsfiddle dies:

    (function loadfb(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) {
            return;
        }
        js = d.createElement(s);
        js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=1234567890";
        fjs.parentNode.insertBefore(js, fjs);
    })(document, 'script', 'facebook-jssdk');
    
    function changeDomain(value) {
        var newVal = '<fb:comments href="http://example.com/some/' + value + '" num_posts="20" width="500"></fb:comments><div id="fb-root"></div>';
        $('#comments').html(newVal);
        FB.XFBML.parse($('#comments').get(0),function(){
            $(".FB_Loader").remove();
        });
    }
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <form id="name">
      <select onChange="changeDomain(this.value);">
        <option value="abc" selected>abc</option>
        <option value="xyz">xyz</option>
      </select>
    </form>
    <div id="comments">
      <fb:comments href="http://example.com/some/abc" num_posts="20" width="500"></fb:comments>
      <div id="fb-root"></div>
    </div>

    I did it by first replacing the innerHTML of the comments div(that I created to house the fb:comments tag), and then calling FB.XFBML.parse(); on that same comments div. Credit goes to this post which alerted me of that method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From this example http://www.senchafiddle.com/#dPZn0 This displays a first panel, then a second one... using
I have a query that gets comments from a database and displays them based
i've developed an android app that's fetches an xml file and displays this data
I have a string of that displays like this.... 1235, 3, 1343, 5, 1234,
I'm using the following code to create an xls file from php. http://www.appservnetwork.com/modules.php?name=News&file=article&sid=8 However,
I'm using the time picker control from the following link: http://fgelinas.com/code/timepicker/timepicker.html It works super
I'm using the time picker control from the following link: http://fgelinas.com/code/timepicker/timepicker.html It works super
This is the page, its a wordpress powered site: http://bit.ly/9oJXWV You select some value,
Possibly I'm using forms incorrectly. The idea is that detail.content displays some HTML, and
This displays the figure in a GUI: import matplotlib.pyplot as plt plt.plot([1, 2, 3],

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.