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

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.
[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.
This discussion has been closed.
Replies