JSON Data Could Not be Parsed - IE Only?
JSON Data Could Not be Parsed - IE Only?
schotz
Posts: 3Questions: 0Answers: 0
Hi all,
I have a new twist on this error that I can seem to find any threads on. My datatables implementation works correctly in Firefox but not in IE (using 9). I'm using server-side processing and I've run my JSON through JSlint and it clears. I've also run through the debugger: http://debug.datatables.net/efuciv and nothing stands out, at least to me, although I can also only get the debugger to work in Firefox. When I try to run it in IE after the errror, it just hangs on 'Uploading data to the server'
Thanks in advance...
I have a new twist on this error that I can seem to find any threads on. My datatables implementation works correctly in Firefox but not in IE (using 9). I'm using server-side processing and I've run my JSON through JSlint and it clears. I've also run through the debugger: http://debug.datatables.net/efuciv and nothing stands out, at least to me, although I can also only get the debugger to work in Firefox. When I try to run it in IE after the errror, it just hangs on 'Uploading data to the server'
Thanks in advance...
This discussion has been closed.
Replies
I find it strange that IE has a problem with this but Firefox doesn't and the JSlint is fine. I don't know much about special characters in MySQL, JSON and browsers. Any thoughts on the best way around this?
Allan
I'm dynamically creating the JSON and returning it via PHP using echo '{JSON content here}' in the source script.
If there's a safer/better way, please let me know.
Allan