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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:46:33+00:00 2026-05-14T14:46:33+00:00

I have a page with a menu that uses JQuery AJAX calls to populate

  • 0

I have a page with a menu that uses JQuery AJAX calls to populate the page with. To reflect any changes I update the URL with a #… instead of ?… or /… So an URL that originally reads : htpp://localhost/pages/index/id=1 would look like : http://localhost/#pages/index/id=1. If a user bookmarks this, and later comes back to the page, I wonder if it’s possible to use the second URL in my route decoding, or if I have to load it blank, then use the same JS/Ajax to populate the page?

In my mind it is problematic to use Ajax in these cases if a user copies the link and mails it to a friend with JavaScript disabled.

edit#1: Fixed some spelling.

edit#2: To clarify the question a bit: I want a site where I can do the following:
(a): with javascript turned on, use ajax calls to replace the content of a div (without reloading the page)
(b): with javascript turned on, bookmark the page as it is after the ajax call i (a)
(c): take the URL, send it to a person with noscript turned on, and have the same page as after the ajax call was made.

(a) and (b) works just fine on my page but (c) is seemingly impossible.

  • 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-14T14:46:34+00:00Added an answer on May 14, 2026 at 2:46 pm

    Currently, the only portion of a URL you can update without causing the browser to redirect is the hash. This portion of the URL is not sent to the server in a request and is only available for client-side processing, so it cannot be used to provide a javascript-free way of providing a link.

    The issue you are facing is a common one amongst those using AJAX. The best solution I’ve encountered is to provide a way to view any AJAX-loaded state of every page through a “true” URL, one that will be passed to the server.

    This means you have one URL which provides a “snapshot” of a page’s state:

    http://localhost/pages/index/1/someaction

    And an AJAX-specific URL which provides the local state of the page in the client’s browser:

    http://localhost/pages/index/1#someaction

    What you then have to do is provide some means of generating the “snapshot” link to the page from the AJAX version. A “Link to this Page” or “Permanent Link” button is a reasonable option.

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

Sidebar

Related Questions

I have a dialog window that uses a URL for its contents { function(){jQuery.ajax({'success':function(html)
In my master page I have a menu that uses jquery ui accordion. What
I'm have some that uses jQuery.clone() to get the html of a page and
I have a page that uses the jQuery.swfobject plugin to embed 5 flash items
I have a page that uses the nabla character for bullets on a menu.
I have a standard drop-down menu that uses jQuery to hide the children li
So on my page I have a menu that is fixed to the top
I have a drop down menu that looks great when the page it scrolled
In my web page, I have a menu ( HorizontalPanel ) that should be
I have a menu on my page that is loaded on every page. The

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.