DataTables警告:尝试在不是表的节点上初始化DataTable:FORM [英] DataTables warning: Attempted to initialise DataTables on a node which is not a table: FORM

查看:685
本文介绍了DataTables警告:尝试在不是表的节点上初始化DataTable:FORM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序部署DataTable之后,我有这个错误信息。我看不到这会来自哪里,因为我没有在我的JS中宣布任何会导致它的东西。所有的表都有唯一的名字,所以我的div。我发现这是同样的问题,但他的解决方法似乎不适用于我的问题:



http:// www.datatables.net/forums/discussion/7668/datatables-warning-attempt-to-initialise-datatables-on-a-node-which-is-not-a-table-div/p1



任何人都有任何指针? Google似乎无法帮助您寻找帮助。



干杯
尼克



更新:



这仍然是我的一个问题。任何人都可以帮助或指向正确的方向?

解决方案

你可能在datatable上使用了一个id,而你也在声明另一个项目在相同的页面中具有相同的ID。



我有同样的问题:



我的代码:

 < div class =modal fade span3 ui-corner-allid =checkingstyle =显示:无> 

我也有

 < table class =table table-nomargin dataTable table-borderedid =checking> 

我重新命名了元素的id,它工作;)


I have this error message coming up after I have deployed DataTables inside of my application. I cannot see where this would be coming from as I haven't declared anything in my JS that would cause it. All the tables have got unique names and so do my divs. I have found this which was the same issue but his workaround doesn't seem to apply to my problem:

http://www.datatables.net/forums/discussion/7668/datatables-warning-attempted-to-initialise-datatables-on-a-node-which-is-not-a-table-div/p1

Anyone have any pointers? Google doesn't seem to be able to help so looking at you guys for assistance.

Cheers Nick

UPDATE:

This is still causing me an issue. could anyone assist or point in the right direction?

解决方案

You are probably using an id on the datatable whereas you are also declaring another item in the same page with the same id.

I had the same problem:

I had this in my code:

<div class="modal fade span3 ui-corner-all" id="cheques" style="display: none">

and I also had

 <table class="table table-nomargin dataTable table-bordered" id="cheques">

I renamed on of the element's id and it worked ;)

这篇关于DataTables警告:尝试在不是表的节点上初始化DataTable:FORM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆