dataTables.editor.js & dataTables.editor.min.js both are minified? (version 1.5.1)
dataTables.editor.js & dataTables.editor.min.js both are minified? (version 1.5.1)
Hi, I have downloaded datatable editor 1.5.1. i am trying to integrate it with Spring MVC controller.
I am following the way as example given, however while saving editted cell "onblur" I encounter "Uncaught TypeError: Cannot read property 'error' of null" thrown from dataTables.editor.js. I want to debug further but dataTables.editor.js also a minified version. I want to jave plain version of dataTables.editor.js. Any idea? Any restriction to have plain version of dataTables.editor.js?
Download zip always give same version for both dataTables.editor.js and dataTables.editor.min.js
Thanks
Sabari
Replies
Hi Sabari,
The trial version of Editor is minified and obfuscated in both files. The purchase version includes the source.
Regarding the error, if you give us a link I will take a look at the issue.
Regards,
Allan
Hi Allan,
Thanks for the reply. I am integrating datatable with our project code base with actual data. I wont be able to demonstrate it externally. Do expect some sort of sample demo with hard coded data? If so let me try to create the sample in the form of html and js.
What's the best place to post (such as jsfiddle) and provide you link. Please advise.
Regards,
Sabari
JSFiddle, JSBin, CodePen or http://live.datatables.net
Allan
Hi Allan,
Our company interested in your product, more chances to purchase. I am into exploring the datatable features for our requirements.
I have put my sample code at: live.datatables.net/zaniresi/3/edit
I could not upload css and js files there.
Stating again - When I try to edit the cells, I have got error below
dataTables.editor.min.js:399 Uncaught TypeError: Cannot read property 'error' of null
Kindly guide. Thanks
Regards,
Sabari
Hi Sabari,
What is the data that the server returned from
ajax/fwrulesave.do
when you edit a cell? Does it confirm to the JSON that Editor expects?Allan
Got it Allan, I will have to do the needful for return value from server.
However, in "client to server" call I have received "action" parameter value properly
but "data" parameter is coming as null. I am afraid I might have missed something in table/editor description. You already have my code. Please help. Thanks
interesting - that shouldn't be the case.
data
should be an object of data.If you have a look at the Ajax request in your browser's inspector tools ("Network" panel) it should show what the data payload was - what is it?
Allan
Perfect. I could receive the payload ad follows
After processing I am returning response as follows. No errors thrown in javascript console. At the same time "process indicator" still moving, looks like "hang" status.
Any idea?
Also verified Ajax response is successful
If you are seeing
data
asnull
at the server, but the client-side is transmitting the data correct (which appears to be the case from the trace above), then its going to be a server-side issue on how to access the data.I haven't used Spring myself, so I'm afraid I can't help much in that regard, you would need to ask how to access the sent array data in a Spring based forum.
Allan
I have no issues with server side data now. Request you to read my previous comment again. I am saying the returned response (as per protocol) is taken further. Thanks in advance Allan
I have no issues with server side data now. Request you to read my previous comment again. I am saying the returned response (as per protocol) is NOT taken further, i feel like "hang" state. Thanks in advance Allan
So you are no longer seeing
data
asnull
at the server-side as you stated above? I didn't realise that had been resolved - sorry.Unfortunately I'm afraid I'm really not sure why it would hang if the correct data is being returned and there is no Javascript error being reported. I really would need to be able to access the page to understand that that is the case.
Allan