• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uncaught SyntaxError: Unexpected token {

good evening,
i am using codeigniter, AJAX and table.js

but i get an error in my console
-> Uncaught SyntaxError: Unexpected token {

and also that one
-> DataTables warning: table id=user_data - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1

obviously i ve tryed to sort it out by reading http://datatables.net/tn/1, but unfortunatly i can't solve it out.

Could someone help me ?

This is a Javascript problem, so your thread has been moved to the "lounge".


I've had this error before. It could be one of several issues. You have dirty data (data that is not consistent). You ARE actually missing an ending bracket or one of your columns has been defined incorrectly.

Things to check.
Are you receiving an error in the browser?
Remove the database data and give it clean test data (to see if the error still appears).

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.