Can Not Be Used On JIRA Plugins
Can Not Be Used On JIRA Plugins
machinecode
Posts: 4Questions: 0Answers: 0
I'm trying to use on a jira plugin project. But I can not initialize datatables.
http://debug.datatables.net/ocexad
error: TypeError: Cannot read property 'length' of undefined
http://debug.datatables.net/ocexad
error: TypeError: Cannot read property 'length' of undefined
This discussion has been closed.
Replies
Allan
If you can download this https://marketplace.atlassian.com/plugins/atlassian-plugin-sdk-windows and try with a default servlet and default table you can see.
Another alternative, I don't know there is a way to try this. You can use https://docs.atlassian.com/aui/latest/sandbox/# and select tables from library :(
Looking at the table it should work just find in DataTables - I'm not sure what JIRA is doing that would be breaking jQuery plug-ins. Have you managed to run other jQuery plug-ins?
Allan
I gave an id on html section to table, added datatable code to javascript section than write jQuery('#table').dataTable(); command to javascript section. After all when I ran js on console side it gives an type error message: "Cannot read property 'length' of undefined"
Also after adding datatables to js section. You can call jQuery('#table').dataTable(); command from console with selecting output-frame.
Yes I used autocomplete plugin before.
Allan
Allan
http://jed-datatables.ca/jed/