Dee Posted September 25, 2009 Report Share Posted September 25, 2009 Hello All , I cant get my schedules to paginate $(document).ready(function() { $("table") .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $("#pager")}); }) added to header.tpl but doesnt work , any help would be great http://www.airindiavirtual.net Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 25, 2009 Administrators Report Share Posted September 25, 2009 Are they inside <script type="text/javascript"> </script> tags? Quote Link to comment Share on other sites More sharing options...
Dee Posted September 26, 2009 Author Report Share Posted September 26, 2009 Hi Nabeel , yes they are <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $title; ?></title> <link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/aiv/styles.css" /> <?php Template::Show('core_htmlhead.tpl'); ?> <script type="text/javascript"> $(document).ready(function() { $("table") .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $("#pager")}); }) </script> </head> thats the extract from the header.tpl Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 26, 2009 Administrators Report Share Posted September 26, 2009 Try it without the .tablesorterPager, does it work then? Sorry, didn't get to actually look at the page... Quote Link to comment Share on other sites More sharing options...
Dee Posted September 26, 2009 Author Report Share Posted September 26, 2009 you mean like this ? <script type="text/javascript"> $(document).ready(function() { $("table") .tablesorter({widthFixed: true, widgets: ['zebra']}) }) </script> also the earlier Edit in the header Blanked out the online Map Quote Link to comment Share on other sites More sharing options...
Dee Posted September 27, 2009 Author Report Share Posted September 27, 2009 That doesnt work either Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 28, 2009 Administrators Report Share Posted September 28, 2009 In firefox, open the error console when you load the page. It'll give you some errors, that would be a start Quote Link to comment Share on other sites More sharing options...
Dee Posted September 28, 2009 Author Report Share Posted September 28, 2009 Error: $("table").tablesorter is not a function Thats what I'm getting Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 28, 2009 Administrators Report Share Posted September 28, 2009 It looks like you're missing the core_htmlhead.tpl include, but there's no jquery loaded in there or the tablesorter jquery plugin (the <script src="" /> portion) Quote Link to comment Share on other sites More sharing options...
Dee Posted September 28, 2009 Author Report Share Posted September 28, 2009 <head> <script type="text/javascript"> $(document).ready(function() { $("table") .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $("#pager")}); }) </script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $title; ?></title> <link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/crystal/styles.css" /> <?php Template::Show('core_htmlhead.tpl'); ?> </head> thats the head right there , the call to the core's in there , thats where its condensing the 3 jquery, js files right ? what am I overooking ??? Quote Link to comment Share on other sites More sharing options...
Dee Posted September 28, 2009 Author Report Share Posted September 28, 2009 any reason why the scripts were not included by default ? without having to add the script block later Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 28, 2009 Administrators Report Share Posted September 28, 2009 Weird, I don't see it... Any of your script blocks should be under the call to core_htmlhead.tpl. Quote Link to comment Share on other sites More sharing options...
Dee Posted September 29, 2009 Author Report Share Posted September 29, 2009 Tried that too , Thing is its giving the errors on my PC localhost too , so I ruled out any conflicts with other scripts on the site Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 30, 2009 Administrators Report Share Posted September 30, 2009 On localhost it's possible it will give errors. Some javascript will not run off of localhost. Can you give me the link to the exact page? I'll try to find some time to look in more detail tomorrow Quote Link to comment Share on other sites More sharing options...
Dee Posted October 8, 2009 Author Report Share Posted October 8, 2009 Hi Nabeel , on http://airindiavirtual.net Operations >>> Flight Schedules thats the page Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.