appendChild giving error in IE8
appendChild giving error in IE8
jainankit0312
Posts: 22Questions: 1Answers: 0
Hi All,
I am not sure if this is the right place to ask this question.
I am using data table to show data on my page. The page works perfectly fine in 'Mozilla' and 'Chrome' but when I am using 'IE-8/9' the page throws error 'unexpected call to method or property access'.
I debugged it a little and I found that the cause behind this error is the call to 'appendChild'.
Can you please tell me how can I resolve this issue or point me to a useful link.
Regards,
Ankit
I am not sure if this is the right place to ask this question.
I am using data table to show data on my page. The page works perfectly fine in 'Mozilla' and 'Chrome' but when I am using 'IE-8/9' the page throws error 'unexpected call to method or property access'.
I debugged it a little and I found that the cause behind this error is the call to 'appendChild'.
Can you please tell me how can I resolve this issue or point me to a useful link.
Regards,
Ankit
This discussion has been closed.
Replies
Allan
I am not sure. I have not used appendChild in any of my own JS files.
Then I checked the dataTable.js , it is calling appendChild multiple times. So I can not point you to a specific part.
How you resolved your issue ?
Regards,
Ankit
I was trying to wrap() the filter generated inside the table so that it comes at a desired position.
wrap() internally calls wrapAll() which internally calls appendChild() and hence it was throwing error.
I removed it by using append() intead of wrap().
Thanks,
Ankit Jain