[eluser]danfloun[/eluser]
Hi,
I am wondering if I can use this Ajax tab script to work with my CI Project.
Basically all the Ajax script does is load the pages into the tab container.
Now obviously I am using model, containers and views and because of this my tab links will be written like <?php echo site_url('main/file_view'); ?> instead of simply file_view.php.
The rel="ajaxcontentarea" in lthe link simply loads the content of file_view into a container.
However this doesn't work and I'm wondering if it's actually possible to use this script this way! or with slight modification.
Tabs:
Code:
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="#default" rel="ajaxcontentarea">Default Tab</a></li>
<li><a href="test.htm" rel="ajaxcontentarea">Test</a></li>
<li><a href="<?php echo site_url('main/file_view'); ?>" rel="ajaxcontentarea">File List</a></li>
</ul>
<div id="ajaxcontentarea" class="contentstyle">
<p>This is some default tab content, embedded directly inside this space and not via Ajax. It can be shown when no tabs are automatically selected, or associated with a certain tab, in this case, the first tab.</p>
<p><b><a href="[removed] expandtab('maintab', 2)">Select 3rd tab of "maintab"</a></b></p>
</div>
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
startajaxtabs("maintab")
Thanks
Danny