Add some sources to be used for any ServerSide or Ajax sourced tables on live.datatables.net

Add some sources to be used for any ServerSide or Ajax sourced tables on live.datatables.net

jLinuxjLinux Posts: 981Questions: 73Answers: 75
edited August 2016 in Free community support

Sometimes, I use the live.datatables.net page to mock up some DataTables examples, or trouble shooting. I was trying to setup an Ajax sourced table using the Ajax data source (objects) example source code, and setting the ajax value to _https://datatables.net/examples/ajax/data/objects.txt_.

However, due to security reasons, this gets blocked by the browser (which I kinda expected). The exact error is:

XMLHttpRequest cannot load https://datatables.net/examples/ajax/data/objects.txt?_=1470258086855. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://live.datatables.net' is therefore not allowed access.

So I just thought it would be neat if there were some sources that could be used for the serverSide and ajax features within the live.datatables.net page.

Thanks!

Replies

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin

    Hi,

    There are a few available, which are documented here (you can access that page from the DataTables JSBin by clicking the "Help" menu at the top right and then the first item in that list.

    Allan

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    Oh cool - Thanks!

This discussion has been closed.