fnUpdate Error in IE8 only

fnUpdate Error in IE8 only

pjb0515pjb0515 Posts: 7Questions: 0Answers: 0
edited November 2011 in General
I am using fnUpdate to change values in my datatable, but it throws an exception at the line 1992 of the datatables script:

[code]_fnGetTdNodes( oSettings, iRow )[iColumn].innerHTML = sDisplay;[/code]

most likely because of the .innerHTML because I have been having issues with .innerHTML in IE8 elsewhere previously.

Any suggestions?

Replies

  • pjb0515pjb0515 Posts: 7Questions: 0Answers: 0
    edited November 2011
    If I replace that line of code with:
    [code]
    try{
    _fnGetTdNodes( oSettings, iRow )[iColumn].innerHTML = sDisplay;
    }
    catch(e){
    _fnGetTdNodes( oSettings, iRow )[iColumn].innerText = sDisplay;
    }
    [/code]

    Everything works perfectly across all browsers, but I am really not looking to leave the official datatable script permanently edited.
This discussion has been closed.