DataTable 1.7.6. and table does not work

DataTable 1.7.6. and table does not work

toplisektoplisek Posts: 26Questions: 5Answers: 0
edited May 2011 in TableTools
I have tested 1.7.6. and need help.

When I test local it will work without any issue. When I copy the same files on server it will be table content and recognised CSS. I have put the same javascript files but sorting link does not execute sorting and also search input with pagination is not there.

Which file or code stopps showing this functions?

Replies

  • toplisektoplisek Posts: 26Questions: 5Answers: 0
    As I understand there is javascript at the top page within head:

    $(document).ready( function () {
    var oTable = $('#example').dataTable( {
    "sDom": 'RC<"clear">lfrtip'
    } );
    new FixedHeader( oTable );
    } );


    If I remove this it will not work sorting and also search input.

    I have this at website. Is this issue with encoding as I have stored javascript with charset="utf-8" without BOM and inserted files have all the time charset="utf-8"?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    There are a number of Javascript errors on the page which you can see if you look with Firebug or Webkit's Inspector:

    cpromos_banners-tabs1-lib.js:8
    Uncaught ReferenceError: lQuery is not defined

    elektricne-grelne-mreze.html:91
    Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function

    jquery.newsTicker-2.2.js:210
    Uncaught TypeError: Cannot read property 'controls' of undefined

    It looks like you will need to use 'jQuery' rather than '$' on that particular site.

    Allan
  • toplisektoplisek Posts: 26Questions: 5Answers: 0
    I have noticed new error
    $ is not a function:

    jQuery(document).ready( function () {
    var oTable = $('#example').dataTable( {
    "sDom": 'RC<"clear">lfrtip'
    } );
    new FixedHeader( oTable );
    } );


    at LINE:
    var oTable = $('#example').dataTable( {
  • toplisektoplisek Posts: 26Questions: 5Answers: 0
    It is just one error now for tabs which will be solved.
    Maybe is Issue is with script from
    script type="text/javascript" charset="utf-8">
    jQuery(document).ready( function () {
    var oTable = $('#example').dataTable( {

    I have changed $...
  • toplisektoplisek Posts: 26Questions: 5Answers: 0
    Please reply.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited May 2011
    I don't see any Javascript errors on the page now, but I also don't see any DataTables initialisation... I don't see where you are calling jQuery(..).dataTable(...) - could you show me where you are making that call please?

    Allan
  • toplisektoplisek Posts: 26Questions: 5Answers: 0
    I have sent you information per contact form.
    Thank you for quick reply.
This discussion has been closed.