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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:38:07+00:00 2026-06-06T15:38:07+00:00

I am bringing in a particular div (.source_div) from one part of my website

  • 0

I am bringing in a particular div (.source_div) from one part of my website into another div (.destination_div) on another part of my website using the following code:

<script type="text/javascript">
$(document).ready(function(){
$('.destination_div').load('http://myurl.mypage.com/something.aspx .source_div');
});
</script>

However, the .source_div contains links that go to other parts of my website. When I click on these links, I would like for those pages to continue displaying within my same .destination_div that I am on, and not taking me away to another page (which is what it currently does). On another slightly related note, I also have a form within my .source_div that that performs a postback which also appends the html. This does not work within my .load either. I have looked around and cannot figure out how to do either one of these things correctly. Could someone please help with one or both of these issues?

  • 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-06-06T15:38:08+00:00Added an answer on June 6, 2026 at 3:38 pm

    Implementation could be something like this.

    $(document).ready(function(){
       $('.destination_div').load('http://myurl.mypage.com/something.aspx .source_div'); // your page is loaded first
       $('.destination_div').on('click','a',function() {
           var url = $(this).attr("href");
           $('.destination_div').load(url);
           return false;
       });
    });​
    

    EDIT: added your previous code

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

Sidebar

Related Questions

I am bringing up the camera with the following code from my ViewController: -
I'm bringing an array into jquery from php, on a wordpress website. It is
While bringing an application from .NET 3.5 to .NET 4.0 I've run into this
I have been given the task of bringing three legacy systems together into one
I'm working on bringing some old code from 1998 up to the 21st century.
Python is simply bringing up another prompt when I enter the following piece of
I'm bringing down a strongly typed dataset table into a datagridview. then adding a
Hi I'm bringing back some items from a web service that contains three strings.
I've inherited some windows-mobile code that I've been bringing up-to-date. I've come across a
I'm trying to modernize my OpenGL code a little bit by bringing it to

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.