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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:38:56+00:00 2026-05-10T16:38:56+00:00

I just set up my new homepage at http://ritter.vg . I’m using jQuery, but

  • 0

I just set up my new homepage at http://ritter.vg. I’m using jQuery, but very minimally.
It loads all the pages using AJAX – I have it set up to allow bookmarking by detecting the hash in the URL.

 //general functions  function getUrl(u) {       return u + '.html';  }  function loadURL(u)    {       $.get(getUrl(u), function(r){                 $('#main').html(r);            }       );  }  //allows bookmarking  var hash = new String(document.location).indexOf('#');  if(hash > 0)  {       page = new String(document.location).substring(hash + 1);       if(page.length > 1)         loadURL(page);       else         loadURL('news');  }  else       loadURL('news'); 

But I can’t get the back and forward buttons to work.

Is there a way to detect when the back button has been pressed (or detect when the hash changes) without using a setInterval loop? When I tried those with .2 and 1 second timeouts, it pegged my CPU.

  • 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. 2026-05-10T16:38:57+00:00Added an answer on May 10, 2026 at 4:38 pm

    Use the jQuery hashchange event plugin instead. Regarding your full ajax navigation, try to have SEO friendly ajax. Otherwise your pages shown nothing in browsers with JavaScript limitations.

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

Sidebar

Related Questions

So i have just set new Error Handlers in httpd.conf for custom error pages:
I'm fairly new to WebService developement and have just set up my own webservice
I've just created a new view based application, and now I want to set
I'm kinda new to GitHub, and I just created my account and set it
I have just set up a new ASP.NET MVC website and I would like
I'm pretty new to Vim and I just set it up so that I
I just set up my freetds.conf file with a new virtual account to connect
I am new to the whole .htacess file thing :) I just set it
I suspect I just being very dumb with this and missing something obvious. But
We just set up New Relic for monitoring and it says that 90% of

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.