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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:37:33+00:00 2026-05-19T03:37:33+00:00

How do I handle navigation with Jquery Ajax? For eg. I have a home

  • 0

How do I handle navigation with Jquery Ajax?

For eg. I have a home page. 2 ajax link that loads the content of either page1 and page2.

I’d like the url to be: localhost/page1 or localhost/page2. I know this is possible but I do not know the name of this feature.

Coded examples would be nice.

<div id="nav">
    <a href="page1">Page 1</a> | <a href="page2">Page 2</a>
</div>
<div id="Container"></div>
  • 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-19T03:37:33+00:00Added an answer on May 19, 2026 at 3:37 am

    I am just guesing if you are looking for some thiing like this

    $("#nav>a").click(function(e){
     $.get($(this).attr("href"),function(data){
      $("#Container").html(data);
     });
     return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function in jQuery that does something like the following to allow
I've got a WF State Machine which I use to handle page navigation on
I have a requirement that the navigation bar be hidden by default. It will
In my page I want the button that looks like the HyperlinkButton (underline when
I have an attribute to add a page to my site's navigation (its a
I have a really strange issue relating to how I handle navigation in an
It was my understanding that <script type=text/javascript src=//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js></script> <script type=text/javascript> $(document).bind('mobileinit', function () {
I'm seeking a javascript history framework to handle navigation inside a page when the
I'm using color plugin (link to google cache, jquery.com currently off) to handle background
Using Prism - what is the best way to handle navigation in a WPF

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.