jquery Pagination

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

Are they inside <script type=“text/javascript”> </script> tags?

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 

Try it without the .tablesorterPager, does it work then?

Sorry, didn’t get to actually look at the page…

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

That doesnt work either

In firefox, open the error console when you load the page. It’ll give you some errors, that would be a start

Error: $(“table”).tablesorter is not a function

Thats what I’m getting

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)

<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 ???

any reason why the scripts were not included by default ? without having to add the script block later

Weird, I don’t see it…

Any of your script blocks should be under the call to core_htmlhead.tpl.

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

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

Hi Nabeel ,

                on http://airindiavirtual.net

               

              Operations >>> Flight Schedules

thats the page