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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:09:15+00:00 2026-06-03T06:09:15+00:00

I have implemented javascript code to solve ajax history problem Everything is working fine

  • 0

I have implemented javascript code to solve ajax history problem
Everything is working fine there no problem in it but I want to improve this code

As an example

When user see page (URL : http://www.example.com/pages/about) and
if user click contact page I append hash code to url like this

window.location.hash="!"+hash;

so the URL will look like http://www.example.com/pages/about#!contactus

whenever user clicks the page hash code will be change

If user press back button or go back in anyway hash will be changed as you all know already

using that hash change content of my web site

so back to main point what I want to do is don’t want to append hash at address bar
(something like Facebook do {you can see this in latest browser})

  • 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-03T06:09:16+00:00Added an answer on June 3, 2026 at 6:09 am

    You should look at new History API additions in HTML5. There’s a somewhat long introduction from “Dive into HTML5” book but I like it a bit more than MDN article.

    Also there’s a great library called History.JS that abstracts away the differences between the new API and old hash-based approach. I also works around many incompatabilities among browsers which is great! It works with jQuery, Prototype, MooTols and Zepto.

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

Sidebar

Related Questions

I have an HTML page with a JavaScript code that sends AJAX request. The
To solve a tricky wiki search problem we've implemented a Javascript solution in a
I have implemented some javascript on my wordpress site but I am getting the
I have implemented facebook connect application in one of my website. Everything works fine
I have implemented the .NET Login functionality, and I am receiving a JavaScript Error
I'm trying a more object oriented approach with javascript and have implemented a class
Possible Duplicate: Can Read-Only Properties be Implemented in Pure JavaScript? I have an Object
I have implement the exact same concept for my project- http://blog.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/ My question is,
I have what I though was a simple problem to solve (never is!) I'm
I have implemented an object as a closure in JavaScript, some of the methods

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.