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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:55:26+00:00 2026-06-12T04:55:26+00:00

I tried to explain how I would like to achieve this with some example

  • 0

I tried to explain how I would like to achieve this with some example code, but I was unable to make it understandable, therefore I have an image that describes the problem.

I do not necessary need any code how to achieve this, I would like suggestions on methods how to solve this, if it is even possible to do it this way. Otherwise maybe there is another way to do the same thing. I hAve googled for days now without finding any example code on this. I will just find examples how to refresh div1 and div2 from the main page.

Below is the image that explains the problem. When main page is loaded, two divs loads two other files into themselves. Is it possible to refresh one of the divs from the other page that has been loaded in the other div?

Thanks!

The image:
https://i.stack.imgur.com/Cav7P.jpg

UPDATE:
I’m trying to call this function that is placed in main.php from div1.php

function updateGroupMembers(id,groupId,action) {
// forming the queryString var data = 'id='+ id + '&groupId='+ groupId + '&action='+ action;
// if searchString is not empty if(id) {
// ajax call $.ajax({
type: "POST",
url: "div2.php",
data: data,
success: function (html) {
$('#div2').html(html);
$('#div2').fadeIn(2000);
},
}); 
}
 return false;
} 
  • 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-12T04:55:27+00:00Added an answer on June 12, 2026 at 4:55 am

    yes it is possible… just use the same method you have used on loading the page.. and it depends on what event you’ll gonna use..

    just a sample code

    $('#div1').click(function(){  
       $('#div2').html('new content') 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code in HTML and CSS where HTML looks like this: <div
Firstly I have tried to re create this within a JSfiddle but unable to,
Recently I tried to explain some poorly designed code to my project manager. All
I tried to ask this question before but I guess I didnt explain myself
I tried this example in Perl. Can someone explain why is it true? if
Can somebody please explain how this works in jQuery. I tried to find some
I have some HTML content and I would like to replace a tag: <span
I've tried to load Disqus with ajax in my page, i'll explain. I have
OK, this is impossible, but I will try to explain the situation here. Let's
I would like to know how to have a foreach statement, where there is

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.