invalid json response - tested with json linter, what else can be wrong?

invalid json response - tested with json linter, what else can be wrong?

cimmmycimmmy Posts: 2Questions: 1Answers: 0

Link to test case: http://uber-dus.rocvin-event.de/new_rides.html
Debugger code (debug.datatables.net):
Error messages shown: DataTables warning: table id=example - Invalid JSON response
Description of problem: Hello, just want to set up a datatable with an ajax source and followed the beginners example. The requested php site provides a json output. datatables shows up the 'invalid json alert'. Just did some research, also tested with json linter and parser. looked at the network resonse in the browswer's tool. Need help as an newbie. Thanks a lot.

Answers

  • cimmmycimmmy Posts: 2Questions: 1Answers: 0

    ...
    $(document).ready(function() {
    $('#example').DataTable( {
    "ajax": 'showTable.php'
    } );
    } );
    ...

    Thats the simple js code to start..

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    I see this has been fixed, the server is responding correctly now.

    Colin

This discussion has been closed.