appendChild giving error in IE8

appendChild giving error in IE8

jainankit0312jainankit0312 Posts: 22Questions: 1Answers: 0
edited June 2012 in General
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

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Which part of DataTables is throwing that error - I've come come across that issue?

    Allan
  • jainankit0312jainankit0312 Posts: 22Questions: 1Answers: 0
    Hi 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
  • jainankit0312jainankit0312 Posts: 22Questions: 1Answers: 0
    Hi,

    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
This discussion has been closed.