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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:25:24+00:00 2026-05-20T19:25:24+00:00

I want to design a webpage as shown in the image below. There are

  • 0

I want to design a webpage as shown in the image below. There are three panels (1,2,3). If I click on the teams (panel 1) then, the panel 2 and 3a will get filled. If I then click on a particular group (G1) then panel 3b will get populated. If I then click on particular animal (A1) then panel 3c will get filled up. The data is being obtained from Oracle database am using PHP.

I am new to AJAX. Can you please let me know the best and efficient way to do this?

Thank you
San
enter image description here

  • 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-20T19:25:25+00:00Added an answer on May 20, 2026 at 7:25 pm

    I would strongly advise using a Javascript framework such as jQuery for this. It takes a lot of the pain out of using AJAX (see http://api.jquery.com/jQuery.get/).

    There’s a couple of ways you could do retrieve the data:

    1. The easiest way would be to generate
      the entire table for (2) within a
      PHP script, and load the HTML into
      the container div. The downside to
      this is that if you want to change
      your HTML template, you’ve got to
      change the PHP file as well.

    2. Alternatively, you can echo the data
      from you PHP in the JSON format (use
      json_encode() in PHP –
      http://www.php.net/manual/en/function.json-encode.php).
      So you’d build your array of rows of
      data and do echo
      json_encode($data);
      . You can the
      use jQuery.get( ) to load it in as
      JSON.

      Once you’ve done that, you need to
      clear any old rows of your table
      (except the heading) and add new
      ones. Again, jQuery would simplify
      the process, but it won’t be easy if
      you haven’t had much experience.

    As I say, the first method is considerably easier as it only takes fairly basic PHP and Javascript. The second method is cleaner, more flexible and probably lighter on your bandwidth, but considerably more difficult.

    Populating 3(a-c) is essentially the same problem. You can either generate the entire content in the PHP and simply set the container HTML, or have the basic HTML template inside the div (but hidden using CSS: display:none;) and populate that template.

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

Sidebar

Related Questions

I want to design a webpage login that when click on the login button
I've got this idea. In a webpage design, after clicking an image i want
I want to design a login and register layout using android tabs. Image is
I want to design a new category this category will be separated from the
this is a CSS / design question. I have three textboxes that i want
I want to design a web page containing multiple output areas which will hold
I am new to this. I want to design an image gallery in my
SPAM I want to design a web site interface as it is shown int
I want to design a nice form for my webpage, which I want to
I want design my startup screen with progress bar. But I don't how 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.