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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:07:41+00:00 2026-05-28T11:07:41+00:00

I couldn’t really word the title very well, but here’s my problem: I’ve got

  • 0

I couldn’t really word the title very well, but here’s my problem: I’ve got a webpage that reads from a database each time the user clicks a button, the content is then replaced for part of the page.

Because it is an ajax load, everything is done in the background, and so the URL stays the same. This wasn’t be a problem at all until I realised that I will want to have a different Facebook comments box for each set of content that is loaded – so if someone comments, it is posted to their facebook profile, people click on the link and are then taken to different content.

So… what I need is some way of referencing each set of content, and I’ve found a site that does exactly that (I’m sure there are a lot of them).

Here’s the link.

Each set of content has a different ‘hash code’ (because I don’t know the actual name for it) which is appended to the URL – in this case the code is “#1922934”, this allows people to post links to it that specific set of content on Facebook etc. – and also allows a different Facebook comment box for each set of content.

Does anyone know how such a set-up can be achieved or how these ‘hash codes’ work?

  • 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-28T11:07:42+00:00Added an answer on May 28, 2026 at 11:07 am

    Here’s a document from wikipedia on it.

    [http://en.wikipedia.org/wiki/Fragment_identifier][1]

    The main idea is that URI fragments are used because they don’t cause a page reload. They also can be used to refer to anchors on a web page.

    What I would do is on page load use JavaScript to read the URI fragment (location.hash) then make a request to your server to load the comments etc. The URI fragment cannot be read by a server and is only found through a client (browser)

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

Sidebar

Related Questions

I couldn't find a more descriptive title, but here there is an example: import
I couldn't really come up with a proper title for my question but allow
Couldn't find better title but i need a Regex to extract link from sample
I couldn't really find this in Rails documentation but it seems like 'mattr_accessor' is
Couldn't figure out how to word the question accurately, so here's an example: Given
Couldn't think of a more appropriate question title, but I'm looking for some advice
Sorry couldn't think of a better title. :) Here goes, I have been pulling
Couldn't come up with a good title for this. I've got a build in
Couldn't really find it, but probably it's me not knowing how to search properly
(couldn't think of a better title, sorry) So I've got my layout page, on

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.