JSON and datatables run well in localhost, in real not. |
Hi.
I am created web using json n datatables, in localhost runwell. But after i upload to real server, its database doesnt show content, but error like this : DataTables warning: table id=mytable - Ajax error. For more information about this error, please see http://datatables.net/tn/7 Is there any things should i setting in cpanel or else? Thanks for helping.
I would check the database versions, could be the live one is a lower version.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
@kelapamuda,
You might want to also check to make sure that your JSON data call matches the dataTable columns.
Open Chrome inspect tool, then Network tab. Now refresh the page, you should see all your AJAX request under XHR filter.
It'll give you good idea if it return weird response code, anything other than 200, but more importantly, it'll show you raw response data, sometimes you get PHP errors in there that might break Datatable.
Well because i am beginner, i still confused.
When i try http://xxx.com/testing/testing2/index.ph...r_edit_own it shows web normally, but data table is empty and error When i try http://xxx.com/testing/testing2/index.ph...t_own/json it is empty , 404 Page Not Found Any help how to trace it ?
@kelapamuda,
Can you show us the code for your view and datatables ajax call and an example of the JSON file?
Code: <div class="content-wrapper"> |
Welcome Guest, Not a member yet? Register Sign In |