Must typecast json.sColumns to String before calling split()

Must typecast json.sColumns to String before calling split()

christianpingdomchristianpingdom Posts: 2Questions: 0Answers: 0
edited March 2011 in Bug reports
In _fnReOrderIndex(), this line causes errors in Internet Exporer (don't know about other browsers):

[code]var aColumns = sColumns.split(',');[/code]

The problem is that sColumns is a JSON Object and not a string, so I changed it to this instead:

[code]var aColumns = String(sColumns).split(',');[/code]

And now it works.

Replies

  • christianpingdomchristianpingdom Posts: 2Questions: 0Answers: 0
    Ouch, this was my fault. Misread the documentation. I sent a JSON array instead of a comma-separated string. Sorry.
This discussion has been closed.