ColReorder fails

ColReorder fails

hlamprechthlamprecht Posts: 2Questions: 0Answers: 0
edited February 2012 in DataTables 1.9
Hi,

I have an application with lots of tables on different pages. Usually all tables use ColReorder, but one table causes problems. I have no idea yet, what the difference is between this table and all the others.

In Firebug, I see the following error:

[code]
Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLTableRowElement.insertBefore]
nParent.insertBefore( nStore, anTags[iTo] );
[/code]

It refers to line 83 in ColReorder.js.

Any idea what I could do to fix it?

Cheers,

Heiner

Replies

  • hozthozt Posts: 45Questions: 0Answers: 0
    Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLTableRowElement.insertBefore]

    Just bumped into to the same problem, I have no idea at all, what could be happening.
  • hozthozt Posts: 45Questions: 0Answers: 0
    Ok, so I figured it out what is it.
    Just need to know how to fix it, if possible at all.

    Allan your the man for this job.

    I believe the problem is the special header, i have grouping the columns.









    Those columns will always throw that failure code, is there a way to at least make the script silently exit, and not let the browser go full out on the users?

    Damn it.
  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    Complex headers should be supported in DataTables: http://datatables.net/release-datatables/examples/basic_init/complex_header.html . However there much be at least one unique cell for each column.

    Can you link me to a test page with the problem please.

    Allan
  • hozthozt Posts: 45Questions: 0Answers: 0
    The complex headers work, you just can't move the columns inside the group (the complex header) or it will throw that error.

    Complex headers and ColReorder are not compatible is what I'm saying, if they are supposed to be, I'll just build a test page, on my website it's not working at all if they are grouped, and it makes sense that it's not working.
This discussion has been closed.