Ajax data

Ajax data

BJW86BJW86 Posts: 30Questions: 11Answers: 0

Im having some trouble pulling data from the following source, not sure why it is not working.

http://live.datatables.net/gavayojo/1/edit

Could anyone point me in the right direction?

Thanks,
Bruce

Answers

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954

    Did you follow the troubleshooting steps at the lin in the error you are getting?

    DataTables warning: table id=example - Ajax error. For more information about this error, please see http://datatables.net/tn/7

    Looking at the XRH response I see this:

    {
        "status": "error",
        "code": "corsNotAllowed",
        "message": "Requests from the browser are not allowed on the Developer plan, except from localhost."
    }
    

    This isn't a Datatables issue. You will need to research the requirements to use https://newsapi.org.

    Kevin

  • BJW86BJW86 Posts: 30Questions: 11Answers: 0

    Thank you Kevin, makes sense now! How can I see the errors on http://live.datatables.net? I couldn't see anything coming up in the console.

    Thanks again,
    Bruce

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Use the browser's network inspector (right click "Inspect" and then select the "Network" tab).

    Allan

  • BJW86BJW86 Posts: 30Questions: 11Answers: 0

    Sorted,
    Thanks Allan

Sign In or Register to comment.