DataTables logo DataTables

via Ad Packs
DataTable 1.7.6. and table does not work
  • toplisektoplisek
    Posts: 15
    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?
  • toplisektoplisek
    Posts: 15
    As I understand there is javascript at the top page within head:
    <script type="text/javascript" charset="utf-8">
    $(document).ready( function () {
    var oTable = $('#example').dataTable( {
    "sDom": 'RC<"clear">lfrtip'
    } );
    new FixedHeader( oTable );
    } );
    </script>

    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: 15,488
    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: 15
    I have noticed new error
    $ is not a function:
    <script type="text/javascript" charset="utf-8">
    jQuery(document).ready( function () {
    var oTable = $('#example').dataTable( {
    "sDom": 'RC<"clear">lfrtip'
    } );
    new FixedHeader( oTable );
    } );
    </script>

    at LINE:
    var oTable = $('#example').dataTable( {
  • toplisektoplisek
    Posts: 15
    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: 15
    Please reply.
  • allanallan
    Posts: 15,488
    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: 15
    I have sent you information per contact form.
    Thank you for quick reply.
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion