Trying to Setup - Warning Message

Trying to Setup - Warning Message

frychikofrychiko Posts: 1Questions: 0Answers: 0
edited September 2009 in General
Hi,

I've copied all the .JS scripts over to my webhost and got them running on my webpage but the first thing that pops up is this message:

[code]Warning: TableTools requires DataTables 1.5 beta 9 or greater - www.datatables.net/download[/code]

What is going on here? I download version 1.5.1. The actual JS code is working and I can sort and stuff.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Hi frychiko,

    That error means that the following line is failing in TableTools:

    [code]
    if ( typeof $.fn.dataTable == "function" && typeof $.fn.dataTableExt.sVersion != "undefined" )
    [/code]

    I'm guessing you are using another library which makes use of $?

    Assuming my guess is right, the fix to change $ in the above code to 'jQuery'. I'll put this in the next TableTools release.

    Regards,
    Allan
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Actually - not sure that my previous message is 100% correct... It is if you are using an old version of TableTools, but if you are using 1.0.2 then $ should be protected in the TableTools scope. Could you check which version you are using please?

    Allan
This discussion has been closed.