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 8900293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:04:20+00:00 2026-06-15T01:04:20+00:00

I was create a comment area in a article, and then, the member name

  • 0

I was create a comment area in a article, and then, the member name who posted the comment will have a link and the link can be click to show the member profile using facebox,
the problem is when the another member comment loaded with AJAX, the link cannot work properly to show member profile using Facebox.

Member name with link:

<a href="/view/profile/<?php print $data['mId']; ?>/" title="View <?php print stripquote($data['mName']); ?>'s Profile" rel="facebox" class="membername"><?php print $data['mName']; ?></a>

Load more comment button:

<a href="#" id="<?php echo $msg_id; ?>" class="more">Load more comment</a>

facebox config:

jQuery(function($){
    $('a[rel*=facebox]').facebox();
});

So, how make the facebox work properly after load more member comment with AJAX. Tq

  • 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-15T01:04:21+00:00Added an answer on June 15, 2026 at 1:04 am

    There are a few ways to go about this.

    You could set up the facebox links after the ajax load, e.g.

    // I don't know how you're doing the ajax load, but say you were using jQuery #load
    $(".more").click(function() {
      $("#yourdiv").load("something.php", function() {
         $(this).find("a[rel*=facebox]").facebox();
      });  
    });
    

    Or you could get a little fancier and load the facebox lazily when the links are clicked, something like:

    $(document).on("click", "a.facebox", function() {
      // I've never used facebox, but according to the docs (link below), this should work.
      $.facebox({ ajax: $(this).attr('href') });
    });
    

    See Controlling Facebox Programatically in the docs.

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

Sidebar

Related Questions

A user can create a post. Posts have comments. A comment must belong to
I want to create a simple message of Your comment has been posted! using
I have an article controller that deals with articles. I have a comment model
I'm trying to create a way to have users comment on my posts. Currently
In the browser address bar i have http://localhost:3000/comment/index?post_id=6 , i can access the post_id
When I create a comment in my feed, rails is duplicating all the previous
## COMMENT OUT below just for reference cursor.execute ( CREATE TABLE yellowpages ( business_id
I wanted to create a default value for :order : class Comment < ActiveRecord::Base
When I post a form to create a new inquiry with a child comment
I am following this example (First comment), How to create a custom ListView with

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.