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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:54:58+00:00 2026-05-29T09:54:58+00:00

i have a javascript gallery wich is a jcarousel so user can press next

  • 0

i have a javascript gallery wich is a jcarousel so user can press next and prev button and view multiple product, in the middle of prev and bext button you find a FB like button, what i need is if user clicks like on one product if he then clicks next or prev the FB like button will be available for clicking(because that’s another product), so this would be surly easier in a per page system, so right now each click on the FB like button has a unique url(i did this using the fragment part with jquery address plugin), i also changing dinamically the ref attribute of the xfbml like button thinking that would reset the button(so each product would have a unique button),

<fb:like send="false" width="450" ref="" show_faces="false" data-layout="button_count"  id="fb_like" ></fb:like> 

changing the ref dynamically gives the FB like button uniqueness because of this:

    When a user clicks a link back to your website, we will pass back both
 the ref value as a fb_ref parameter and the fb_source parameter 
in the referrer URL

but this doesnt reset the button to a “clickable” state if the like button has not been pressed.

  • 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-05-29T09:54:59+00:00Added an answer on May 29, 2026 at 9:54 am

    The Like button will only retain the initial value. You have to build out the fb:like statement if you want to make it dynamic. Wrap the entire thing in jQuery.

    Another user has sample code here that I found useful Update FB:Like URL Dynamically using JavaScript that works for AJAX calls.

    From that post:

    $('#like').html('<fb:like href="' + url + '" layout="button_count" show_faces="false" width="65" action="like" font="segoe ui" colorscheme="light" />');
    if (typeof FB !== 'undefined') {
        FB.XFBML.parse(document.getElementById('like'));
    }
    

    HTML:

    <span id="like"></span>
    

    All credit to Mohammed Arif

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

Sidebar

Related Questions

I have found a JavaScript gallery . When I view the JavaScript code, I
Is there any javascript, css, ajax product gallery (even paid) that would have image
I have JavaScript that is doing activity periodically. When the user is not looking
I have javascript string variable with var sttr=We prefer questions that can be answered
I have a lite-javascript run image gallery. The javascript grabs each <img> element in
I'm building a javascript-powered gallery on the iPad that can display both images and
I have four product gallery with the possibility to check the detail of each
I have this jQuery code: <script type=text/javascript> $(function() { $(.one-edition img).hover(function() { $(this).next(.editions-info-text).show(); },
I have a JavaScript Picture gallery. The arrows under the gallery make possible to
Morning folks. I have an interactive gallery in mind, whereby a user hovers over

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.