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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:49:07+00:00 2026-06-01T14:49:07+00:00

So I need to make 3 tabs with query (got this part down), but

  • 0

So I need to make 3 tabs with query (got this part down), but each of them needs to retrieve filter-able data through an Ajax request. Basically the page is setup with a static div on the left with the filter in it, and then on the right the tabs change according to which one you pick.

I’m just wondering what would be the best method of grabbing the ajax content and putting it into each tab?

I hope I made my question clear.

  • 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-01T14:49:08+00:00Added an answer on June 1, 2026 at 2:49 pm

    This should be pretty straightforward if I understand your question correctly. For instance, let’s assume you want to retrieve a static webpage and simply insert all the content of that webpage into your container div…

    $('#tab1').click(function(){
        //Fetch a webpage (via GET) and load into 'result'
        $.get('/path/to/stuff.htm',function(result){
            //Replace content of container with result
            $('#containerDiv').html(result);
        });
    });
    

    It’s really that simple. If you need a piece of the result (such as extracting CDATA from an XMLRPC request), then you can simply load the result as a jQuery object, find the element, and then load that… like so…

    $('#tab1').click(function(){
        //Fetch a webpage (via GET) and load into 'result'
        $.get('/path/to/stuff.htm',function(result){
            //Make result a jQuery obj
            result = $(result);
            //Replace content of container with result
            $('#containerDiv').html(result.find('mycdata').text());
        });
    });
    

    I should also note – if you have an XML result that is wrapped in CDATA, always read it as .text() even if you are inserting it as html. If the result isn’t wrapped in CDATA, read it as .html().

    UPDATE:
    If you need to send extra data to the server (such to sort ASC or DESC), you might do this…

    $('#tab1').click(function(){
        //Fetch a webpage (via GET) and load into 'result'
        $.get(
            '/path/to/service', 
            { sort:'ASC', startDate:'2012-04-01', endDate:'2012-04-08'}, 
            function(result){
                //Replace content of container with result
                $('#containerDiv').html(result);
            }
        );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to make tabs that also have drop down menu and requirements are
I need to make tabs like this which is having horizontal scroll and I'm
I need to make a tab navigator in flex3. If no. of tabs increases
I need to make this function work everywhere, except IE6-7 $(function(){ window.scrollTo(0,300); }) Please
I need to make the tabs that I have oriented at the bottom of
I need to make some changes in the tabs when the event it's create
I have couple labels and tabs in my site and I need to make
I inherited this code and now need to make modifications. I have a series
I need to be able to programmatically create new tabs on a TabControl, add
I need to have a TabHost consisting of two tabs where each tab represented

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.