DataTables Ajax not executing
DataTables Ajax not executing
我使用的是DataTables版本1.10.2
。我正在处理成千上万的数据集,所以我使用服务器端处理。我甚至无法通过ajax运行该文件。我正在尝试使用test.php运行该文件,如下所示。
<?php file_put_contents("itworked.txt","itworked"); ?>
我曾尝试使用以下策略创建DataTable,但从未创建过该文件。如果我通过浏览器访问链接,则会创建该文件。
$(document).ready(function() {
$('#playertimes').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://domain.com/HCP/plugins/plugin_Timer/assets/php/test.php"
});
});
$(document).ready(function() {
$('#playertimes').dataTable({
"serverSide": true,
"ajax": "http://domain.com/HCP/plugins/plugin_Timer/assets/php/test.php"
});
});
为什么没有调用文件?
您应该阅读数据表1.10的文档。做了一些更改,认为仍然有向后兼容性,但我认为你应该坚持1.10向上的版本。。
$(document).ready(function() {
$('#playertimes').dataTable({
"processing": true,
"serverSide": true,
"ajax": "http://domain.com/HCP/plugins/plugin_Timer/assets/php/test.php"
});
});
相关文章:
- jQuery is not loaded
- AngularJS JSON not arriving php
- $rootScope not working
- reactRedux is not defined
- jquery ajax success functions not executing
- rails jquery ajax request not executing
- Javascript not executing google chrome extensioin
- SoundCloud JS SDK get handler not executing
- Office 365 on iPad - SP.SOD.executeFunc not executing functi
- Webview javascript not executing
- Rails 3.2.2 not executing rjs
- setTimeout not executing
- jQuery .post() not executing
- DataTables Ajax not executing
- Cordova / Phonegap -- jquery not executing Javascript on <
- Angularjs $timeout not executing
- Delphi, EmbeddedWB/TWebbrowser - jQuery not executing
- JS not executing
- Jquery else not executing
- e.preventDefault not executing