Editor is showing as undefined or null reference
Editor is showing as undefined or null reference
HardCorps88
Posts: 11Questions: 5Answers: 0
I have editor.bootstrap.js in my bundle and verified its in my Scripts folder but still get error. Not sure what Im missing?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Can you link to the page so I can debug the issue please? Have you also included
dataTables.editor.js
?Allan
I can't link to the page since its in a secure environment. I did include the datatables.editor.js in the bundle. Could a version of jquery that I use 2.1.4 cause the issue?
The current released of DataTables and Editor should be fully compatible with jQuery 2.1.4.
Can you show the full HTML for the page?
Allan
Lemme see...
Thanks for your help Allan. I found out that due to trying to load my table via my model directly then thru Ajax I can't do edits. So...I am rebuilding using ajax to load and perform my edits and adds. Been looking through the forum to see what all my steps are so far.
It sounds like you might have been injected HTML into the document and it didn't have event listeners on it, so nothing would happen. Is that about right? I'd need to be able to see some code in order to be able to offer any assistance I'm afraid.
Allan
So is the full HTML view (I presume that is what the above HTML code chunk is) written into the document in some way? The JS would need to be run after that is inserted, and it should only really be inserted once in the life-time of the page.
Allan