Jquery tabs (tabify) in Code Igniter. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Jquery tabs (tabify) in Code Igniter. (/showthread.php?tid=57093) |
Jquery tabs (tabify) in Code Igniter. - El Forum - 02-14-2013 [eluser]Unknown[/eluser] Hello, I'm trying to use Tabify: http://unwrongest.com/projects/tabify/ IIt works ok without Code Igniter. But, when I add it to CI and put code to the view adding only in header Code: <base href="<?php echo $this->config->item('base_url') ?>" /> so the paths are correct then it does not work (tabs are not being changed). Is there something I'm missing? Thank you for hints. Jquery tabs (tabify) in Code Igniter. - El Forum - 02-14-2013 [eluser]Salvador P.[/eluser] Maybe the Javascript is not loaded. Check the Jquery library is included in the page you are loading the tabs. Jquery tabs (tabify) in Code Igniter. - El Forum - 02-14-2013 [eluser]Unknown[/eluser] Javascript is loaded. Anchor urls are working too Code: <ul id="tabs_navi"> I think the problem could be with url ? Working without CI is: Code: http://HERE_IS_URL/obiekt.php#tabs01 And with Code Igniter it is (not working) Code: http://HERE_IS_URL/obiekt/index/500#tabs01 I have browsed this forum and found out that many people had similar problems. Jquery tabs (tabify) in Code Igniter. - El Forum - 02-14-2013 [eluser]Salvador P.[/eluser] I've never used Tabify, maybe the problem is with the url, try to put some alerts in the javascript code which changes the tab, to see if it's picking the "#tabs01" or picking "500#tabs1". Check if you can use base_url() instead of current_url(). Hope this helps. |