Getting started

Getting started

jackriskjackrisk Posts: 2Questions: 0Answers: 0
edited February 2014 in DataTables 1.9
I'm sure my problem is very basic but I would appreciate your help. I have little knowledge of jQuery. Your debugger tells me that js is not running on my page: http://www.jackrisk.ca/MeditationBibliography.html.

I copied the expanded files to my website and I have uploaded all new files.

Here is the scripting I have in the head:

<!-- InstanceBeginEditable name="head" -->

<!-- DataTables CSS -->


<!-- jQuery -->


<!-- DataTables -->



$(document).ready( function () {
$('#MeditationBibliography').DataTable();
} );


<!-- InstanceEndEditable -->

Replies

  • pipechavespipechaves Posts: 5Questions: 0Answers: 0
    what do you have on the body ?
  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    It looks like you have a bunch of 404 errors:

    [code]
    jquery.dataTables.css Failed to load resource: the server responded with a status of 404 (Not Found)
    jquery.js Failed to load resource: the server responded with a status of 404 (Not Found)
    jquery.dataTables.js Failed to load resource: the server responded with a status of 404 (Not Found)
    MeditationBibliography.html:29 ReferenceError: Can't find variable: $
    xtd_footer_quote.png Failed to load resource: the server responded with a status of 404 (Not Found)
    favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)
    [/code]

    So DataTables isn't running, because it isn't being loaded! You need to correct your paths or put the files in the correct location.

    Allan
  • jackriskjackrisk Posts: 2Questions: 0Answers: 0
    After a good night's sleep I was able to see the source of my problem clearly. I have now corrected the address for the js and css files and everything is working beautifully. Thank you for your fine program.
This discussion has been closed.