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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:38:08+00:00 2026-06-02T03:38:08+00:00

In my site, there is a nav bar on the left. When I click

  • 0

In my site, there is a nav bar on the left. When I click the links they change the #container div on my page but nothing else through ajax. I want to put back and forward buttons that will make just the #container div go back and forward in state. I read that history.js would be the best thing for this and I went through the html5 history api but I don’t understand how to solve my problem. Also, how would I go about implementing a refresh button?

  • 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-02T03:38:11+00:00Added an answer on June 2, 2026 at 3:38 am

    It sounds like what you are looking for is something like PJAX.

    Just to be clear, the HTML5 History API (which History.js implements/shims) does not maintain the state of your application directly. Rather, it provides a mechanism for mapping changes in the window URL to a function responsible for actually rendering the changes. The readme offers some insight into how this might be achieved:

    History.Adapter.bind(window, 'statechange', function() {
        var State = History.getState(); 
        History.log(State.data, State.title, State.url);
    });
    

    If, instead of logging the state, you wish to alter the container’s content (without using PJAX or a similar library), you might instead store the contents of #container each time you call pushState and adjust the handler function to do something like this:

    History.Adapter.bind(window, 'statechange', function() {
        var State = History.getState(); 
        $('#container').empty().append(State.data.content);
    });
    
    History.pushState({content:"Hello, world!"}, "State 1", "?state=1");
    

    Of course, you will need to alter this to reflect the specifics of your situation.

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

Sidebar

Related Questions

For the main nav of my site, there is a 980px wide div with
I have nav a bar on my site but I want to put rounded
I have a problem with my WordPress theme (html5) nav bar not showing site
I am trying to remotely add links to the site top navigation bar. It
I'm looking to put a horizontal fisheye/dock nav on my site, but I need
Strange problem this one. I want the nav bar on the following site to
On my sandbox site there is a white bar across the top. It is
On this site each page is made up of multiple .jsp files. There is
I have a nav bar on my site that is currently one color and
I have a single-page scrolling website. It uses a fixed-position nav bar with jquery

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.