Dee
September 25, 2009, 6:17pm
1
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
nabeel
September 25, 2009, 8:31pm
2
Are they inside <script type=“text/javascript”> </script> tags?
Dee
September 26, 2009, 3:37am
3
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
nabeel
September 26, 2009, 3:53am
4
Try it without the .tablesorterPager, does it work then?
Sorry, didn’t get to actually look at the page…
Dee
September 26, 2009, 5:21am
5
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
nabeel
September 28, 2009, 2:44pm
7
In firefox, open the error console when you load the page. It’ll give you some errors, that would be a start
Dee
September 28, 2009, 6:01pm
8
Error: $(“table”).tablesorter is not a function
Thats what I’m getting
nabeel
September 28, 2009, 6:06pm
9
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)
Dee
September 28, 2009, 6:57pm
10
<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 ???
Dee
September 28, 2009, 7:05pm
11
any reason why the scripts were not included by default ? without having to add the script block later
nabeel
September 28, 2009, 8:18pm
12
Weird, I don’t see it…
Any of your script blocks should be under the call to core_htmlhead.tpl.
Dee
September 29, 2009, 12:28am
13
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
nabeel
September 30, 2009, 2:07am
14
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
Dee
October 8, 2009, 6:42am
15
Hi Nabeel ,
on http://airindiavirtual.net
Operations >>> Flight Schedules
thats the page