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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:27:13+00:00 2026-05-27T23:27:13+00:00

I am trying solve the back button issue within my app. The scenario is:

  • 0

I am trying solve the back button issue within my app. The scenario is:

I have a home page with a search form which sends and receives data with $.ajax(), then the results loaded through ajax, their links points to a controller that won’t be done by GET in ajax so that means that the page will be refreshed (so the home page with the results looks like this: http://url/en/home and a result link may look like this http://url/fetch/data/x123av).

The problem is which is the best way fix that when click back button to return the results from the search box?

I have found some answers in stackoverflow related to my question:
http://code.google.com/p/reallysimplehistory
http://tkyk.github.com/jquery-history-plugin

But from the documentation of those plugins, they all work by checking the hash change which I don’t have.

Hope I have explained well enough, and I do have searched stackoverflow and google for a solution but I didn’t find one that is close to this or either I’ve jumped over it…

Please just point me to the right way 😀

  • 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-27T23:27:14+00:00Added an answer on May 27, 2026 at 11:27 pm

    But from the documentation of those plugins, they all work by checking
    the hash change which I don’t have.

    If you want to handle the back button with AJAX request you will have to redesign your application so that it works with hashes as that’s the only way. Changing the fragment portion of an url doesn’t trigger a page reload but it is added to the history, so when you press the back button you are able to detect this change without navigating away from the page.

    As mentioned by SLaks in the comments section another possibility is to use the HTML5 history API but obviously this assumes that the client browser supports it.

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

Sidebar

Related Questions

In trying to solve the ajax back button problem I have found the Really
Alright, here is my problem i'm trying to solve. I have an index page
I have the following problem which I'm trying to solve with javascript. I have
I'm trying to solve a problem where I have some classes in which I
trying to solve a puzzle which i found here: http://zcasper.blogspot.com/2005/10/google-phone-interview.html the goal is to
Trying to solve a problem with templatetags. I have two templatetags: @register.inclusion_tag('directory/_alphabet.html') def alphabet_list(names):
I'm trying to solve the 3n+1 problem and I have a for loop that
EXPLAINING WHAT I'M TRYING TO SOLVE: I have a webpage ( file_list.php ) showing
trying to solve a bug! I have an ajax powered social network (with like
I have a problem I am trying to solve as smooth as possible, and

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.