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

#1
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 ?
Reply

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

#3
@davidevillers,

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).
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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