NS_ERROR_XPC_NOT_ENOUGH_ARGS in Firefox, not in other browsers

NS_ERROR_XPC_NOT_ENOUGH_ARGS in Firefox, not in other browsers

RodriguezRodriguez Posts: 14Questions: 0Answers: 0
edited November 2012 in General
This is really driving me crazy... I've been searching for more than 3 hours and I just can't find what's causing this.

The thead (containing images) does not show correctly AND prevent the table rows from being generated.

The page looks perfect in Chrome, IE and Safari : http://i.imgur.com/kVPkf.png

This is how the page looks like in Firefox: http://i.imgur.com/DXzFW.png

The code for creating the thead:























The css for the rankingheader class:

table.dataTable thead.rankingheader {
vertical-align: bottom;
text-align: center;
background-color: #aaa;
padding-left: 5px;
padding-bottom: 5px;
}

I have been trying all types of things in my css, but nothing helps.

The only way I get the table to be generated right in Firefox, is when I completely delete the thead-code I posted above. So, that's the proof that is must have something to do with that code.

Thanks for helping me out.

Replies

  • RodriguezRodriguez Posts: 14Questions: 0Answers: 0
    edited November 2012
    I found out something strange that will probably be causing the FF issue. In Chrome (or IE or safari), when I zoom in on the page I get this extra column on the right that becomes visible. Screenshot: http://i.imgur.com/RV8kc.png.
    It dissappears when I hide the thead wrapper, so it must be generated by the thead. The number of columns is 17 and the number of is also 17. How come? Firebug gives no errors. The problem occurs in all my datatables (when I'm using theads), so I gues is must have something to do with the code.
  • RodriguezRodriguez Posts: 14Questions: 0Answers: 0
    edited November 2012
    Ok, I managed to upload my page: http://www.booboo.be/whiteboard/datatable_ranking.php

    Firebug is giving me the following error:

    NS_ERROR_XPC_NOT_ENOUGH_ARGS: Not enough arguments
    nTh.setAttribute();
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Looks like you've got a modified version of DataTables and the modification has invalid Javascript in it.

    DataTables 1.9.4 has:

    > nTh.setAttribute('role', 'columnheader');

    Your code has:

    > nTh.setAttribute();

    which is invalid and hence the issue.

    Allan
  • RodriguezRodriguez Posts: 14Questions: 0Answers: 0
    Thanks Allan. Sorry for that...
This discussion has been closed.