Problem with escape characters
Problem with escape characters
I am trying out the server_side example but using my own data. I noticed in the example http://www.datatables.net/examples/server_side/server_side.html the server side php script is using a lot of mysql_real_escapes which breaks valid json data.. i have a name field in my table with the contents "Fisher's Auto care" , using mysql_real_escape changes the data to "Fisher\'s Auto care" so I had to do a string replacement in order to get valid json..
My biggest problem is the search feature, whenever I press a key it immediately gives me an alert messaging saying "DataTables warning JSON data from server could not be parsed. This is caused by a JSON formatting error."
Firebug says :The 'charCode' property of a keyup event should not be used. The value is meaningless.
Line 0
I am using the latest 1.7.5.. anyone run into this problem? The same sample on the web site runs fine..
My biggest problem is the search feature, whenever I press a key it immediately gives me an alert messaging saying "DataTables warning JSON data from server could not be parsed. This is caused by a JSON formatting error."
Firebug says :The 'charCode' property of a keyup event should not be used. The value is meaningless.
Line 0
I am using the latest 1.7.5.. anyone run into this problem? The same sample on the web site runs fine..
This discussion has been closed.
Replies
So yes, I think seeing the full string returned from the server would be useful.
Allan
Thanks!