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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:20:32+00:00 2026-06-15T06:20:32+00:00

In my website I will have a browse catalogue button, which, onclick will change

  • 0

In my website I will have a “browse catalogue” button, which, onclick will change several elements of the page to display the catalogue element. I dont want a full page reload because several elements such as the nav bars and news feed will stay the same.

My question is how can i change several different divs with ajax onclick?

Essentially im not sure how to do place several different components in different divs across a page.

And i know there’s a limit on simultaneous ajax calls, so im sure the proper way to do it wouldnt be to make a unique ajax call for each of my divs.

A little guidance would be great.

  • 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-15T06:20:33+00:00Added an answer on June 15, 2026 at 6:20 am

    Using jQuery, you can get an json array of elements for each block that needs to be updated:

    In your html page:

    $.get("page.php?id=42",
       function(result){
         $('#title').text(result['title']);
         $('#description').text(result['description']);
         $('#price').text(result['price']);
       }, "json");
    

    In page.php:

    $result = array('title' => 'foo', 'description' => 'bar', 'price' => 3);
    echo json_encode($result);
    header('Content-Type: application/json');
    die();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: Every page on the website will have a menu bar at the top
I am currently working on a website that will have a high volume of
I'm about to create a user based website and will have to store photo,
I am working on an website where users will have to pay a small
I am trying to architect a system that will have a website and an
For a website, I will have a lot of auto complete fields on differents
I am working on a online shopping website, it will have product images also.
I have to create a few functions for a website that will get a
I have a notification system on my website where users will be notified of
I have a website where an ajax call will get some Json data from

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.