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?
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.phpHEAD section should look like (the rest of the page remains the same):And here’s what
lazarus.phpshould look like:This worked for me.