to use datatables with my code - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: to use datatables with my code (/showthread.php?tid=66545) |
to use datatables with my code - sheenam - 11-03-2016 Hi all, i want to implement datatables with my code but when m trying to use datatables but its not working can you please help me with this. my code is given below: These both codes are in view. i want to know whether any jquery is conflicting VIEW PHP Code: <!DOCTYPE html> PHP Code: VIEW : sorry this is a view file: PHP Code: <?php include_once "vwHeader.php" ?> RE: to use datatables with my code - abhijeetgk - 11-03-2016 First of all Kindly provide what error message you get secondly you should avoid using html code in your controller. RE: to use datatables with my code - sheenam - 11-03-2016 (11-03-2016, 02:31 AM)abhijeetgk Wrote: First of all Kindly provide what error message you get abhijeetgk . sorry it was my mistake actly both files are in view. my datatables arent working with this code. and thanks for replying RE: to use datatables with my code - Wouter60 - 11-03-2016 You mean Datatables.js, don't you? It requires this structure for your table: Code: <table id="myId"> RE: to use datatables with my code - sheenam - 11-03-2016 (11-03-2016, 01:31 PM)Wouter60 Wrote: You mean Datatables.js, don't you?Wouter60 , Yes dear i have used this structure only but datatable isnt working. RE: to use datatables with my code - Wouter60 - 11-04-2016 Quote:Wouter60 , Yes dear i have used this structure only but datatable isnt working. No, you haven't. There are no <tbody> and </tbody> tags in your code. Besides that, the <thead> section is inside a <tr> element. It should be the other way around. |