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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:01:54+00:00 2026-05-26T17:01:54+00:00

Unless this is HTML 5 where I can easily use history.pushState() to manipulate URL

  • 0

Unless this is HTML 5 where I can easily use history.pushState() to manipulate URL when AJAX loads additional piece of page, I find it inconvenient to handle pages registered with hash mark in URL address bar.

For example, page item1.html is loaded. User clicks next item – item2.html page is loaded with AJAX. Address is changed in the browser to item1.html#item2.html.

Now as user sends this URL to a friend or bookmarks it, I want to make sure item2.html is loaded.

Approach 1) JavaScript will redirect URL item1.html#item2.html to item2.html. Disadvantage: item1.html is loaded and flickers for a second before redirect.

Approach 2) load item1.html and hide item1 content, then load item2.html with Ajax request. Disadvantage: item1 content can still be visible (unless I hide it with visibility none which may be bad for SE’s)

Better approach? There must be a great solution I am missing that many big sites implement.

  • 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-26T17:01:55+00:00Added an answer on May 26, 2026 at 5:01 pm

    Don’t think of the # part as a url to a file. It’s a logical state for the page to be in.

    For you I think that means having like a page.html, which maybe has no real content on its own. Then you have page.html#item1 and page.html#item2, etc. The urls are always consistent. You’d never really directly navigate to item1.html or item2.html.

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

Sidebar

Related Questions

Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
@search_results = Array.new duplicates = Set.new results.each { |result| @search_results.push(result) unless duplicates.add?(result[:url]) } This
thanks for help, ended up with this html{ position:relative; min-width:950px; height:100%; background:black url(images/GrassBG.png) repeat-y
Is this possible? you can se my problem here: http://granjalaaurora.com/test/test-jscrollpane.html I have this structure:
I have a header within the following html page and I can't get the
From this example: http://datamapper.wanwizard.eu/pages/getadvanced.html#Deep.Relationship.Include You can see that it says: At this time, deep
When adding user input to a web page, it should (unless it's HTML of
I have an HTML page that I do not want to be available unless
Unless I make static CPaintDC dc(this); the line won't draw? But this is not
This is really strange but this code is working fine unless the value entered

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.