jQuery TableTools不工作 [英] jQuery TableTools not working
本文介绍了jQuery TableTools不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我下载了示例
从TableTools。哪个工作正常我所做的是将index.html的内容复制到另一个文件并关联每个路径。 Flash加载正常,但打印按钮除外,每个控件都被禁用。可能是这个问题。
from TableTools. Which is working fine. what i did is i copied the content of the index.html to another file and associated every path. Flash loaded fine but except print button every control is disabled. What could be the issue.
<title>TableTools example</title>
<style type="text/css" title="currentStyle">
@import "http://localhost/media/css/demo_page.css";
@import "http://localhost/media/css/demo_table.css";
@import "http://localhost/TableTools/media/css/TableTools.css";
</style>
<script type="text/javascript" charset="utf-8" src="http://localhost/media/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="http://localhost/media/js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8" src="http://localhost/TableTools/media/ZeroClipboard/ZeroClipboard.js"></script>
<script type="text/javascript" charset="utf-8" src="http://localhost/TableTools/media/js/TableTools.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "http://localhost/TableTools/media/swf/ZeroClipboard.swf"
}
} );
} );
</script>
推荐答案
基本上问题是关于指定swf路径不正确。
Basically the problem is about the specify the swf path incorrectly.
"sSwfPath": "http://localhost/TableTools/media/swf/ZeroClipboard.swf"
尝试用
"sSwfPath": "../media/swf/ZeroClipboard.swf"
这篇关于jQuery TableTools不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文