fnAddData not working on IE

fnAddData not working on IE

tehjordtehjord Posts: 4Questions: 0Answers: 0
edited March 2012 in General
Hello people, Ive been using this wonderful plugin on a project of mine with great result.

Problem is, the project is destined to be used on Internet Explorer(sadly nothing I can do about it).

Now, on firefox, this code will work fine and add a new row to my table.

[code]
$(Document).ready(function() {
var medTable = $('#testtable').dataTable( {
"aoColumnDefs": [ { "sClass": "updateableData", "aTargets": ["_all"] } ],
"bJQueryUI": true,
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": false,
"bInfo": false,
"bAutoWidth": false
} );

medTable.fnAddData(["test"],true);
[/code]

When I load the page on firefox, I see the test row fine, but on IE, it's simply not there.

Whats going on :S

Replies

  • tehjordtehjord Posts: 4Questions: 0Answers: 0
    I tried debugging the table with both firefox and iexplorer, the testtable table only appears in the debug table field with firefox, no tables are reported at all in IE
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    How many columns are in your table? The array length you give to fnAddData must exactly match the number of columns. Are there any script errors in IE? Can you give us a link to a test case?

    Allan
  • tehjordtehjord Posts: 4Questions: 0Answers: 0
    Thank you allan, the problem was that that "Document" is valid in firefox with a capital D but not in ie :)
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Wowzers - I had no idea that it would be valid in Firefox. Live and learn :-). Thanks for the update.

    Allan
This discussion has been closed.