Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'parentNode' of null on Angular way #181

Closed
nashtsai opened this issue Jan 13, 2015 · 5 comments
Closed
Labels
Milestone

Comments

@nashtsai
Copy link

I've spotted “TypeError: Cannot read property 'parentNode' of null on Angular way” problem is caused by:

DTDefaultOptions.setLanguageSource('http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/xxxx.json')

or

$scope.dtOptions = DTOptionsBuilder
    .newOptions()
    .withLanguage({
       sUrl:'http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/xxxx.json'
      })

Suspected that due to language resources is received asynchronously and applied after data models has been set into datatable caused this problem.

I am re-posting this due to there is no respond in #150.

@l-lin l-lin added the bug label Jan 13, 2015
@l-lin l-lin added this to the v0.4.0 milestone Jan 14, 2015
@genuinefafa
Copy link

Same issue here. I don't think it is related with async receive of file. :(

@cizgidekiadam
Copy link

Same issue in v0.4.1 with angular way.
When i tried to change default language got this error.
TypeError: Cannot read property 'parentNode' of null
at
App.run(["$rootScope","$state","DTDefaultOptions",function($rootScope,$state,DTDefaultOptions) { DTDefaultOptions.setLanguage({ sUrl: 'global/plugins/datatables/Turkish.json' }); }]);
html:
`













Product Price
{{c.name}} {{c.price}}
`

@beefs
Copy link

beefs commented May 11, 2015

I got that error when im using angularjs 1.3.3, but it works fine when I use angularjs 1.3.14

@kschio
Copy link

kschio commented Jun 25, 2015

Using "setLanguageSource" or "setLanguage" is still problematic. Without everything runs fine.

angular 1.3.16
angular-datatables 0.4.3

@eduarguz
Copy link

Sorry, any news on that? when i was on localhost there were no problems, but now I have this issue on my deployment project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants