AJAX Source Troubleshooting
AJAX Source Troubleshooting
I'm new to datatables and javascript. I having a working server side datatable that I want to change to an AJAX source. I've taken the JSON that I had loaded on the server side written it to a file and changed the bProcessing & sAjaxSource entries from:
bServerSide: true,
sAjaxSource: '${request.contextPath + '/app/appJSONTable'}' ,
to
bProcessing: true,
sAjaxSource: '/home/greg/Temp/data.json' ,
I have also upgraded from 1.7.6 to 1.8.0. Under 1.7.6 I received the error "No Data Available in Table". After upgrading, it now says "Loading...".
I'm guessing that it can't find the file. How should I approach troubleshooting this?
bServerSide: true,
sAjaxSource: '${request.contextPath + '/app/appJSONTable'}' ,
to
bProcessing: true,
sAjaxSource: '/home/greg/Temp/data.json' ,
I have also upgraded from 1.7.6 to 1.8.0. Under 1.7.6 I received the error "No Data Available in Table". After upgrading, it now says "Loading...".
I'm guessing that it can't find the file. How should I approach troubleshooting this?
This discussion has been closed.
Replies
Allan
Loading...