Editor processing in DOM on local Javascript Object array
Editor processing in DOM on local Javascript Object array
Link to test case: http://live.datatables.net/giyiqiwe/1/edit
Debugger code (debug.datatables.net):
Error messages shown:
Scripts/Editor/js/dataTables.editor.min.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'processing'
Occurring on "this.processing(!0)"
Description of problem:
I am attempting to load data from a javascript object array. The tables load fine but the problem is occurring when i setup the editor. Ideally, i only want to edit one field in the record. It is a "Y" or "N" value. I only want the data to save locally to the table when updated. I will gather all the data and perform a custom submit to save to the database.
When i select the edit button i get an error in dataTables.editor.min.js.
I have not used the test case environment before but did attempt to emulate.
The example i provided uses a representative javascript object as the data source for the datatables. In my "actual" version the buttons load fine, not sure why in the test case provided they dont appear. When i added the editor script (1.9.6) the table stopped loading completely.
Answers
http://live.datatables.net/giyiqiwe/2/edit
It appears to work okay for me there (I just rearranged the <script> tags a little), but that is using Editor 2.0.5.
If you use the non-min version of Editor 1.9.6, could you tell me what line the error is happening on please?
Allan
I have included a screen capture which shows the line is failing. Its setting the processing(ture).
That’s a Button’s action function. What version of Buttons are you using? That method was introduced in Buttons 1.3.
Allan
They are all custom functions except edit. Included below is the datatable script.
Did you verify the version of the Buttons extension you are using? The Debugger is an easy way to find out.
Kevin