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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:24:11+00:00 2026-05-16T01:24:11+00:00

I’m trying to use jQueryUI tabs, loading the Tabs via AJAX. The problem I’m

  • 0

I’m trying to use jQueryUI tabs, loading the Tabs via AJAX.

The problem I’m having is with Google Visualizations placed on those tabs — they don’t appear when retrieved via AJAX.

I’ve setup a simple demonstration:

http://htmlto.com/ui/index.php is the tab page. Tab 1 should load the page seen here: http://htmlto.com/ui/tab1.php

But, it doesn’t. I’ve seen similar solutions to this problem that involve altering the AJAX call, except, my AJAX calls are part of the jQueryUI, so I need a solution that plays well with their setup.

I’ll be loading many different, dynamically generated visualizations; the data populating needs to take place on the tab, rather than the footer of the main page, otherwise the load time will be untenable.

What should I do?

  • 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-16T01:24:12+00:00Added an answer on May 16, 2026 at 1:24 am

    Your pages that will be used as tabs should not have HTML, HEAD or BODY tags. I’m pretty sure they should just exist as raw HTML.

    EDIT

    Okay, here’s what the index.php HEAD section should look like (the rest of the page remains the same):

    <head> 
        <meta charset="utf-8" /> 
        <script type="text/javascript" src="/ui/js/jquery-1.4.2.min.js"></script> 
        <script type="text/javascript" src="/ui/js/jquery-ui-1.8.2.custom.min.js"></script> 
        <script type="text/javascript" src="/ui/development-bundle/ui/jquery.ui.tabs.js"></script> 
        <script type="text/javascript" src="/ui/development-bundle/ui/jquery.ui.widget.js"></script> 
        <script type="text/javascript" src="/ui/development-bundle/ui/jquery.ui.core.js"></script> 
        <link type="text/css" href="/ui/css/ui-lightness/jquery-ui-1.8.2.custom.css" rel="stylesheet" /> 
        <script type='text/javascript' src='http://www.google.com/jsapi'></script> 
        <script type="text/javascript"> 
            $(document).ready(function () {
                $("#tabs").tabs({
                    ajaxOptions: {
                        error: function (xhr, status, index, anchor) {
                            $(anchor.hash).html("Couldn't load this tab. We'll try to fix this as soon as possible. If this wouldn't be a demo.");
                        }
                    }
                });
            });
            google.load('visualization', '1', { 'packages': ['annotatedtimeline'] });   
        </script> 
    <title></title> 
    </head>
    

    And here’s what lazarus.php should look like:

    <script type='text/javascript'>
         var data = new google.visualization.DataTable();
         data.addColumn('date', 'Date');
         data.addColumn('number', 'Sold Pencils');
         data.addColumn('string', 'title1');
         data.addColumn('string', 'text1');
         data.addColumn('number', 'Sold Pens');
         data.addColumn('string', 'title2');
         data.addColumn('string', 'text2');
         data.addRows([
          [new Date(2008, 1, 1), 30000, undefined, undefined, 40645, undefined, undefined],
          [new Date(2008, 1, 2), 14045, undefined, undefined, 20374, undefined, undefined],
          [new Date(2008, 1, 3), 55022, undefined, undefined, 50766, undefined, undefined],
          [new Date(2008, 1, 4), 75284, undefined, undefined, 14334, 'Out of Stock', 'Ran out of stock on pens at 4pm'],
          [new Date(2008, 1, 5), 41476, 'Bought Pens', 'Bought 200k pens', 66467, undefined, undefined],
          [new Date(2008, 1, 6), 33322, undefined, undefined, 39463, undefined, undefined]
        ]);
    
         var chart = new google.visualization.AnnotatedTimeLine(document.getElementById('chart_div'));
         chart.draw(data, { displayAnnotations: true });
     </script>
    
    <div id='chart_div' style='width: 700px; height: 240px;'></div>
    

    This worked for me.

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

Sidebar

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.