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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:59:47+00:00 2026-06-06T00:59:47+00:00

I have gotta website powered by a set of jQueries; Dynamically loading the contents

  • 0

I have gotta website powered by a set of jQueries; Dynamically loading the contents with a set of menu buttons.

Now, all I want to know is this:

Have you seen in blogger? The url is like

blogger.com/blogger.g?blogID=abcd#id

For the #id, if you put #overview it shows the stats. If you put #allposts it shows all the posts and similarly the content varies depending only on the #id in the url. I’ve seen many websites use this method to provide PermaLinks too.

How can I do it? for each menu button I provided an #id, which if passed in the url I need to switch to that particular menu.

Note : I use PHP, js, jQuery and HTML5 +/- Ajax

PS: Please, do not say you can use this and that! I’m a kinda middle of a knowledge i.e I’m not a pro. So please provide me with some algorithms or code.

Thanks in advance 🙂

  • 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-06T00:59:48+00:00Added an answer on June 6, 2026 at 12:59 am

    window.location.hash will contain the hash value in the URL (#id, #overview, etc…). You can then use javascript that runs when your page loads to check the value of window.location.hash and based on what it contains, you can modify your page, using ajax calls if retrieving data from the server is necessary.

    The hash value is not sent to the server so it must be client-side code that processes it.

    As for specific code, you would use something like this;

    $(document).ready(function() {
        switch(window.location.hash) {
            case "#id":
                // code here
                break;
            case "#overview":
                // code here
                break;
            default:
                // code here
                break;
        }
    });
    

    What specific code goes in there obviously depends upon what you’re trying to do. If you need to get data from your server, then you would issue ajax calls to retrieve that data.

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

Sidebar

Related Questions

Hi all I have a horrid database I gotta work with and linq to
I'm brand new to OOP and I have a question that's gotta be pretty
i am running with the latest IOS Xcode and itunes versions now. i have
I have a GWT application that I want to release as software-as-a-service (SAAS) on
I have this homework that I gotta finish, but then something about it is
I have 3 tables: singers , songs , albums . They are all linked
I gotta be missing something. I have a controller action for short urls: def
I have some objects in an ArrayList, and I want to perform collision detection
I have a great line to list all the user accounts, but how do
I have been looking around online for a while now for methods of integration

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.