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

  • Home
  • SEARCH
  • 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 6170059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:57:56+00:00 2026-05-23T22:57:56+00:00

I need to work with an ajax powered web page so I can pass

  • 0

I need to work with an ajax powered web page so I can pass an id or ids in the URL and it’ll only display result(s) based on the id(ids) passed in. For an old cgi page, I could do: http://myurl?id=1,
is there a way of doing this for Ajax pages?
Thanks,

David

  • 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-23T22:57:57+00:00Added an answer on May 23, 2026 at 10:57 pm

    Simplest – use anchors and the hashchange event to modify the state of the URL (you’ll mostly need a shiv for older browsers like IE 6 and 7). When the page first loads, parse the hash and load what you need to via ajax. (An example of library to help with that Ben Alman’s jQuery bbq plugin.) Your URLs in this case will look like this:

    http://example.com/entry/point#/my/app%3Fq=1
    

    Neater – use the new history API to pushState as the page changes for newer browsers and fallback on hashchange for browsers that don’t support the new HTML5 goodness. (An example of a library that helps with that is Ben Lupton’s History.js plugin). Your URLs for newer browsers will look like this:

    http://example.com/my/app?q=1
    

    while URLs for browsers that don’t support the new API will see the hashchange URL.

    Neatest – use a full routing or MVC framework and don’t re-invent the wheel. Examples include, but are not limited to:

    • JavascriptMVC
    • Backbone.js
    • Spine.js
    • Crossroads.js

    Note that with the newer history API, you really should make sure that all of your URLs are actually reachable and usable without JavaScript. (So if you push http://example.com/my/app?q=1 onto the history stack you should be able to type that URL into your browser’s address bar and just go there.)

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

Sidebar

Related Questions

I need to work with a third-party Java library from .NET. Can anyone recommend
I am doing an ajax Post action and i need to work out the
Need to turn javascript (ajax) vote script into reusable (dynamic) script so it can
I need to work with MSMQ (Microsoft Message Queuing). What is it, what is
I need to work with array from several threads, so I use CRITICAL SECTION
I need to work with some old C++ code that was developed in Visual
I need to work with large files and must find differences between two. And
I need to work on C++ project on my windows machine. My project will
I need to work around a Java bug in JDK 1.5 which was fixed
I need to work with an old repository, whose db/format contains 2 From this

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.