JQuery TableSorter Plugin (Uncroppable TypeError: Cannot read property "msie" from undefined)

I am using this pagination plugin. this

i includes files in my header like below:

<script src="<?php echo base_url('_assets/js/jQuery-2.1.3.min.js');?>"></script>
<script src="<?php echo base_url('_assets/js/tablesorter/jquery.tablesorter.js');?>" type="text/javascript"></script>
<script src="<?php echo base_url('_assets/js/tablesorter/addons/pager/jquery.tablesorter.pager.js');?>" type="text/javascript"></script>

      

my script page:

$(document).ready(function() {
     $("#p_history")
    .tablesorter({widthFixed: true, widgets: ['zebra']})
    .tablesorterPager({container: $("#pager")});
});

      

Error: Uncaught TypeError: Unable to read property "msie" from undefined

Does anyone know a solution?

+3


source to share


1 answer


As I can see you are using the 2.0

jquery version and possibly the tablesorter plugin working with the old jQuery version.



The error is due to the function being $.browser.mise

deprecated in jQuery 2.0, so you must use an older jQuery <= 1.3. Or use a compatible plunin sorter.

+4


source







All Articles