TypeError in Datatable.editor
TypeError in Datatable.editor
![icenhance](https://secure.gravatar.com/avatar/06ef1295da1030e367211e16aa44c8a2/?default=https%3A%2F%2Fvanillicon.com%2F06ef1295da1030e367211e16aa44c8a2_200.png&rating=g&size=120)
Dear all,
I have using Inline-editor and I got this error
TypeError: ttButtons[("editor_" + val)] is undefined
so please let me know what can i do?
This discussion has been closed.
Dear all,
I have using Inline-editor and I got this error
TypeError: ttButtons[("editor_" + val)] is undefined
so please let me know what can i do?
Answers
I suspect that is happening is that there is a loading order issue with the Javascript files. The order should be:
I think 3 and 4 might be swapped in this case?
Allan
Thanks Allan,
I'm using requireJs to loading this as bellow:
And whenever i have swapped 3 before 4 or 4 before 3, i still get error.
This is code that I call your editor in my code:
I suspect I'm missing something here - if TableTools is loaded after Editor, then the TableTools buttons that Editor adds are not added. But you aren't using the buttons in the above code, so I'm not sure what is triggering the error. Can you link me to the page so I can take a look?
A couple of other points:
sAjaxSource
orsAjaxDataProp
or some of the other properties you've used for Editor. You wantajax
.serverSid
should beserverSide
in DataTablessAjaxSource
in DataTables - I'd suggest you useajax
andajax.dataSrc
- the latter to replace sAjaxDataProp.Allan
Hi Allan,
Please check out this link you will see my error: https://github.com/chinda/iceweb
Does it need to be built after download or something? I just load the html file and get a bunch of XHR errors.
Allan
OK, please go to:
http://114.134.189.246:9090/web/app/#categoryList
The server is taking an absolute age to respond to the request. That's not something that DataTables can do much about, but rather something that needs to be modified in the script.
In fact it looks like it just timed out for me.
Allan