I'm using EasyTabs for my tabs. I use ajax-tabs so I can fetch content from other pages (when I click on the appropriate buttons of the navigation menu). But it does not work. The content gets not loaded.
According to the developer's blog I just had to change the order of my divs and add the data-target attribute. But it doesn't work and I don't know where the problem might be. The strange thing is when I don't use Ajax it works (but I need Ajax so I can load the content when I click on a navigation button).
I use Easytabs on localhost:8888 with MAMP. For testing purposes I am using Safari 5.1.7.
Here I initialize Easytabs.
<script type="text/javascript">
$(document).ready(function(){ $('#tab_container').easytabs(); });
</script>
This is the setup for my buttons and divs.
<div id="tab_container" class="module_bg">
<ul id="shadetabs">
<li><a href="'<?php echo $setting['site_url'];?>/includes/homepage/new_games.inc.php'" data-target="#t1"><?php echo NEWEST_MODULE;?></a></li>
<li><a href="'<?php echo $setting['site_url'];?>/includes/homepage/popular_games.inc.php'" data-target="#t2"><?php echo POPULAR_MODULE;?></a></li>
</ul>
<div class="panel_container">
<div id="t1">
</div>
<div id="t2">
</div>
</div>
</div>