DataTable plugin not working.

DataTable plugin not working.

tanProgtanProg Posts: 6Questions: 0Answers: 0
edited April 2012 in General
Hi
I am using the Datatable plugin which I recently downloaded from the website. I am trying to use an example which I saw on the internet to test the plugin but it doesnt seem to work .
The raw table appears but no plugins seem to be working .
This is my code :

[code]









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













Artist / BandAlbumSong



Muse
Absolution
Sing for Absolution

Primus
Sailing The Seas Of Cheese
Tommy the Cat

Nine Inch Nails
Pretty Hate Machine
Something I Can Never Have

Horslips
The Táin
Dearg Doom

Muse
Absolution
Hysteria

Alice In Chains
Dirt
Rain When I Die

<!-- PLACE MORE SONGS HERE -->








[/code]


I cant seem to find any problem. The scripts and css files seem to be loading properly on the debugger for javascript.
Thanks

Replies

  • allanallan Posts: 63,277Questions: 1Answers: 10,424 Site admin
    You are including jQuery twice... The second one is overwriting the first instance with DataTables.

    Allan
  • tanProgtanProg Posts: 6Questions: 0Answers: 0
    Hi
    I am using this now :
    [code]



    [/code]

    But it still doesnt work.

    Thanks
  • tanProgtanProg Posts: 6Questions: 0Answers: 0
    I have changed it to :
    [code]







    @import "../Scripts/TableFilter/css/demo_table.css";

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













    Artist / BandAlbumSong



    Muse
    Absolution
    Sing for Absolution

    Primus
    Sailing The Seas Of Cheese
    Tommy the Cat

    Nine Inch Nails
    Pretty Hate Machine
    Something I Can Never Have

    Horslips
    The Táin
    Dearg Doom

    Muse
    Absolution
    Hysteria

    Alice In Chains
    Dirt
    Rain When I Die

    <!-- PLACE MORE SONGS HERE -->








    [/code]

    Is there something wrong here?
  • allanallan Posts: 63,277Questions: 1Answers: 10,424 Site admin
    Looks fine to me - please link us to the demo page.

    Allan
  • tanProgtanProg Posts: 6Questions: 0Answers: 0
    Hi Allan

    Thanks for your help . Ive got it to work. I just deleted the plugin files and copied all of them again.
This discussion has been closed.