No styling and classname undefined
No styling and classname undefined
Hi!
Today is my first day trying to use datatables. Unfortunately I did hit a problem at first try.
There is no style on my datatable AND I got the errors:
[code]#11 http://s/coreigniter/api/js/datatables-1.9.4/media/js/jquery.dataTables.min.js:27:69
#10 http://s/coreigniter/api/js/datatables-1.9.4/media/js/jquery.dataTables.min.js:27:79 ua()
#9 http://s/coreigniter/api/js/datatables-1.9.4/media/js/jquery.dataTables.min.js:127:312 HTMLTableElement.()
#8 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:5347 Function.x.extend.each()
#7 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:1999 x.fn.x.each()
#6 http://s/coreigniter/api/js/datatables-1.9.4/media/js/jquery.dataTables.min.js:116:366 j()
#5 http://s/coreigniter/massedit:39:21 HTMLDocument.()
#4 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:26036 c()
#3 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:26840 Object.p.fireWith [as resolveWith]()
#2 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:3305 Function.x.extend.ready()
#1 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:717 HTMLDocument.q()[/code]
My HTML code is:
[code]
0_category[1]
0_vat[1]
0_inprice[1]
0_outprice[1]
0_weigth[1]
0_imgupload[1]
1_product
1_title
1_content
1_language
category_1_0
vat_1_0
inprice_1_0
outprice_1_0
weigth_1_0
imgupload_1_0
product_1
title_1
content_1
language_1
category_19_0
vat_19_0
inprice_19_0
outprice_19_0
weigth_19_0
imgupload_19_0
[/code]
and JS:
[code]
$(document).ready(function(){
$('.datatable').dataTable();
});
[/code]
I have no idea what the problem can be and I hope you can help me, I include this:
[code]
[/code]
If I want to use the themeroller from jquery UI, do I have to download jquery UI and include it, with its CSS files, or does datatables it automatically?
Thanks in advance!
Today is my first day trying to use datatables. Unfortunately I did hit a problem at first try.
There is no style on my datatable AND I got the errors:
[code]#11 http://s/coreigniter/api/js/datatables-1.9.4/media/js/jquery.dataTables.min.js:27:69
#10 http://s/coreigniter/api/js/datatables-1.9.4/media/js/jquery.dataTables.min.js:27:79 ua()
#9 http://s/coreigniter/api/js/datatables-1.9.4/media/js/jquery.dataTables.min.js:127:312 HTMLTableElement.()
#8 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:5347 Function.x.extend.each()
#7 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:1999 x.fn.x.each()
#6 http://s/coreigniter/api/js/datatables-1.9.4/media/js/jquery.dataTables.min.js:116:366 j()
#5 http://s/coreigniter/massedit:39:21 HTMLDocument.()
#4 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:26036 c()
#3 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:26840 Object.p.fireWith [as resolveWith]()
#2 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:3305 Function.x.extend.ready()
#1 http://s/coreigniter/api/js/jquery-1.10.2.min.js:4:717 HTMLDocument.q()[/code]
My HTML code is:
[code]
0_category[1]
0_vat[1]
0_inprice[1]
0_outprice[1]
0_weigth[1]
0_imgupload[1]
1_product
1_title
1_content
1_language
category_1_0
vat_1_0
inprice_1_0
outprice_1_0
weigth_1_0
imgupload_1_0
product_1
title_1
content_1
language_1
category_19_0
vat_19_0
inprice_19_0
outprice_19_0
weigth_19_0
imgupload_19_0
[/code]
and JS:
[code]
$(document).ready(function(){
$('.datatable').dataTable();
});
[/code]
I have no idea what the problem can be and I hope you can help me, I include this:
[code]
[/code]
If I want to use the themeroller from jquery UI, do I have to download jquery UI and include it, with its CSS files, or does datatables it automatically?
Thanks in advance!
This discussion has been closed.
Replies
you see in the second tag there is less tags than