Error with DataTables Editor
Error with DataTables Editor
ines
Posts: 9Questions: 2Answers: 0
I'm trying to run the DataTables/extensions/Editor-1.3.1/examples/simple/i18n.html page but when I press the buttons 'nouveau' or 'modifier' or 'supprimer' it shows me an error message and do not do updates requested
This discussion has been closed.
Answers
The error message indicates that there was an error with the request at the server. What is the Ajax response from the server? You can find that out using the developer tools in your browser.
Allan
Uncaught TypeError: Cannot read property 'error' of undefined !!! please hlp me
error on this file DataTables/extensions/Editor-1.3.1/js/dataTables.editor.js:294
Hi allan,
I tested the same page on my local server, everything works fine but putting it on my remote server, the above was an error appears, there's there a specific configuration for this problem
Can you tell me what the Ajax return from the server, in response to the Ajax request is. Not the Javascript error.
Failing that, please link me to to the page so I can take a look.
Allan
how to do this?? sorry for the inconvenience I am a beginner, thx
This tech note shows how it can be done: http://datatables.net/manual/tech-notes/1#Server-data
Allan
it show me this
{"fieldErrors":[{"name":"first_name","status":null},{"name":"last_name","status":null},{"name":"extn","status":null},{"name":"age","status":null},{"name":"salary","status":null},{"name":"start_date","status":null}]}
I finally managed to solve the problem, so I removed the validators and I modified the staff.php file like this:
Good to hear you got it working in the end.
In the JSON return in your previous post, that looks like valid JSON to me. Did the server not return anything else at all? I was expecting a PHP warning message.
Allan
Thank you very much for your real help,
Actually the warning message that appears was PHP.