Error in IE 9 - "SCRIPT600: Invalid target element for this operation."

This page works on Firefox and Chrome. In IE9, I get this error: SCRIPT600: Invalid target element for this operation. I noticed that this error message was also discussed in other posts, but they concern other issues.

Here is the code that throws an error. I use trend charts (and tall charts for other tables) for my site.

<script> jsio('import .js.trends'); new js.trends.Table({ // ERROR THROWN ON THIS LINE target: 'trends_table', type: 'credits', noData: 'No credits yet!', columns: [{ title: 'Date', src: 'begin_date', format: 'date' }, { title: 'Time', src: 'begin_date', format: 'time' }, { title: 'Credits Earned', src: 'credits_earned', format: 'number' }, { title: 'How Earned', src: 'activity', format: 'lookup', values: { 0: 'ABC', 1: 'DEF' } }, { title: 'Credits Spent', src: 'credits_spent', format: 'number' }] }).refresh(); </script> 

I am a little confused about the changes I have to make. Any suggestions?

Thanks in advance.

+6
source share
3 answers

I think IE has inconsistent support for the insertAdjacentHTML method, and for elements like TR and TBODY, IE throws an exception if the method is called for these methods. This error exists with IE6.

+7
source

As already noted, Internet Explorer had problems setting up the contents of <table> , <tr> , <td> , etc. .insertAdjacentHTML are several errors using .innerHTML , .insertAdjacentHTML until IE10 runs in standard mode.

Bug report and workarounds: http://webbugtrack.blogspot.ca/2007/12/bug-210-no-innerhtml-support-on-tables.html

+3
source

If your element is a table, I believe that this is one of those elements that are read-only with IE9.

+1
source

Source: https://habr.com/ru/post/905406/


All Articles