data tables not working
data tables not working
PaulFreeWebs
Posts: 63Questions: 4Answers: 1
I got a new website design, this design did not have data tables built in so im using data tables from a old site but i can not get it to work, please can you help me, if this helps im using dat tables 1.9.4
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
No-one can debug code without seeing it.
here is the both codes im using
http://xatwebs.co/js/datatables/jquery-1.8.2.min.js and
http://xatwebs.co/js/datatables/jquery.dataTables.min.js
We need to see your own code.
ok
http://pastebin.com/BjSvRmHK is the code, it worked before but not now
EDIT: it seems to be 1 of my js files is affecting the tables, since i remove them all, time to see which one it is
EDIT 2: i think i found the js thats affecting it, but when i remove it, it makes 2 search and per page come up instead of just 1, also this breaks my nav bar
Can you show us the rendered HTML as well please?
I would also suggest running the W3C validator over the page and just make sure that it is valid HTML. It looks like that at a minimum the
tbody
closing tag is missing.Allan
When i disable the js/jquery.js which is built into my site, the datatables work, but it displays 2 search and the content per page http://prntscr.com/4zo97j is a screenshot of it, here is the html code http://pastebin.com/nv51BfWz if u want the url to look at the issue this is the url http://xatwebs.co/powerid
I tried the tbody and still have same issue, but that js i disabled breaks my nav bar, which i know is nothing to do with this site, unless there is something in that code, which idk
Looks like DataTables is being initialised twice on the table, which I don't understand how it is possible - it shouldn't be! Could you update to the 1.10.3 release please - the page is using an old version of DataTables at the moment. I'll take a closer look when I get back from holiday in the middle of the week.
Allan
Ok, i try 1.10.3, is there a download like a simple one with no add ons?
i tried 1.10.3 now i hve nothing
EDIT: this is worked, thanks