How can i use datatable in CodeIgniter framework

How can i use datatable in CodeIgniter framework

kabirkabir Posts: 1Questions: 0Answers: 0
edited December 2009 in General
when i trying to use datatable in codeigniter framework then get following error

$("#datatables").dataTable is not a function
$('#datatables').dataTable();\r\n

can any one tell me whats the way to use datatable in codeigniter framework. I tried by using examples from site.

Replies

  • zurahzurah Posts: 1Questions: 0Answers: 0
    i am getting the exact same error...
    $('#my_table).dataTable is not a function.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Oops - looks like I missed this post way back in December. Sorry.

    If you are getting that error, then you've most likely not included the DataTables JS file in your page. Or, you've included jQuery twice (it nukes the old object if this happens).

    Regards,
    Allan
  • cryogenixcryogenix Posts: 1Questions: 0Answers: 0
    maybe this will help:

    http://codeigniter.com/forums/viewthread/160896/

    it's a thread i made on how i ported datatables for CI. hope it helps =)
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Thanks for the pointer :-)

    Allan
  • galaksi17galaksi17 Posts: 1Questions: 0Answers: 0
    is there someone who gives a tutorial that explains the DataTables and CodeIgniter, ranging from the controller, view, and models with code.
    because I just new in use it
This discussion has been closed.