I've implemented EasyTabs for organizing my tabs on a webpage. I decided to use ajax-tabs functionality in order to fetch content from other pages when users click on the navigation menu buttons. However, I've encountered an issue where the content is not loading as expected.
After reading through the developer's blog post about EasyTabs, it seemed like all I needed to do was rearrange the order of my divs and add the data-target attribute. Despite following these instructions, the ajax feature still doesn't seem to work properly and I'm unsure where the problem lies. Interestingly, everything functions correctly when I disable Ajax (although this is essential for loading content upon button clicks).
Currently, I have EasyTabs set up on localhost:8888 using MAMP for testing purposes with Safari 5.1.7 as my browser.
Below is how I initialize EasyTabs:
<script type="text/javascript">
$(document).ready(function(){ $('#tab_container').easytabs(); });
</script>
This snippet showcases the configuration of my buttons and div elements:
<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>