Ajax - Requesting remote URL Json File, while get "Invalid JSON response"!

Ajax - Requesting remote URL Json File, while get "Invalid JSON response"!

bewwebbewweb Posts: 5Questions: 3Answers: 0

My page is here http://opendata.eirta.com/od/ubike.html
and the debug page is http://debug.datatables.net/isuzot

Kindly assist by pointing the error made.

Thank you, in advance...

This question has an accepted answers - jump to answer

Answers

  • Tom (DataTables)Tom (DataTables) Posts: 139Questions: 0Answers: 26
    Answer ✓

    Hi

    In your code you are making a jsonp request, however the response you are getting back is just normal json.

    If you want to make a jsonp request you need a jsonp response.

    You could try just making a json request rather than jsonp.

    Thanks

    Tom

  • bewwebbewweb Posts: 5Questions: 3Answers: 0

    Tom, thank your immediate assistance. I started to modify the code, while still failed. As I am new to DataTable, so I will take time to study more and see if I am able to find the code error out.

    Best Regards

    BewweB

This discussion has been closed.