How do I set up the "zero configuration" example?

How do I set up the "zero configuration" example?

DanSchwartzDanSchwartz Posts: 19Questions: 0Answers: 0
edited July 2012 in General
Hello,

I have downloaded jQuery and DataTables, managed to get a basic jQuery example to run,
but can't figure out the basic DataTables example. My jQuery example is

<!DOCTYPE html>


Demo



jQuery


$(document).ready(function(){
$("a").click(function(event){
alert("Thanks for visiting!");
event.preventDefault();
});
});




The DataTables example I am looking at is the "zero configuration" given as

$(document).ready(function() {
$('#example').dataTable();
} );

Could someone please tell me how to turn this into a complete working example like the
above, including instructions as to which files need to be placed in which directories?

Please provide all details. I know a bit of JavaScript but am not an expert.

Thanks,

Dan Schwartz

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Looks like you would need to include the DataTables script file. Have a look at this blog post, which you might find useful: http://datatables.net/blog/Getting_started_with_DataTables%3A_First_steps

    Allan
  • DanSchwartzDanSchwartz Posts: 19Questions: 0Answers: 0
    Allan

    Thanks. That reference was very helpful. I have it working now. M next step is to try out the Editor plug-in.

    Dan
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Let us know how you get on with it :-)

    Allan
This discussion has been closed.