WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] search and sorting not working even with table sorter enabled (10 posts)

  1. toango
    Member
    Posted 1 year ago #

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    the table at http://toanjuan.com/inventory/ has only sorting because in WP-Table Reloaded, on the "Plugin Options" screen, "Tablesorter" is selected as the JavaScript library. For the search function, this needs to be changed to "DataTables".

    For the table at http://summittileonline.com/checkstock, the same is true, but additionally, there's a JavaScript error on that page. To find out where exactly, I suggest to temporarily turn off JavaScript minification in the cache plugin.

    Regards,
    Tobias

  3. toango
    Member
    Posted 1 year ago #

    Wow thanks tobias. Turning off minification made my site alot faster and my slider work again

    http://www.webpagetest.org/result/120622_2V_8CP/1/performance_optimization/#first_byte_time

    If you dont mind. May i know how or where the error message is?

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    that's interesting. I would have expected that the page loads a little bit slower actually... But the reason might be that JavaScript error.

    I can see the error message in the Google Chrome Developer Tools, which has a JavaScript console. If your are using Firefox, there's the great "Firebug" extension, which offers similar features.

    The table at http://summittileonline.com/checkstock now suffers from a configuration problem in your WordPress installation. The sorting is not working as you can see. The reason is that it is not clearly defined whether you want to use the domain name with www. or without. Please take a look at http://wordpress.org/support/topic/plugin-wp-table-reloaded-search-box-tools-disappear-on-non-www-domain for information on how to fix this.

    Regards,
    Tobias

  5. toango
    Member
    Posted 1 year ago #

    My host was able to succesfully setup the redirect But the w3 cache plugin interferes with it.

    works now but is there a way to make it work with w3 cace. I should probably ask w3 as well but if you any advice that would be appeciated. THanks toias.
    ----
    I setup the redirect, however, it did not help. Although I have seen W3 cache interfere with a lot of things, so I disabled it and it immediately started working. You can see it working now.

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    from what I can see, the problem remains. Now, a file that WP-Table Reloaded needs to load on the frontend (namely the file http://summittileonline.com/wp-content/plugins/wp-table-reloaded/languages/datatables/lang-en_US.txt) is being loaded from the cdn. domain. This does not work though, as a JavaScript request can't load files from other domains.
    Can you please try to exclude that file from being loaded from the CDN? I believe that there is an option to exclude files from this in the W3 Total Cache settings.

    Regards,
    Tobias

  7. toango
    Member
    Posted 1 year ago #

    Great!

    Its working now after excluding file!

    You are awesome tobias. Thanks so much

  8. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    very cool! Thanks a lot for the confirmation! :-)

    Best wishes,
    Tobias

  9. Farhi Razali
    Member
    Posted 1 year ago #

    I have the problem that my table is not sortable (no arrow) in the fileds of top row.

    her is my site: http://farhi.uitm.edu.my/latihan_industri/#/senarai-majikan

    I tried to disable plugins one by one to check whether there is conflict. I couln'y find one. Probably, it is my theme.

    What can I do?

  10. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    the reason for this is that your table is loaded into the page via an AJAX request. During that request however, only the table content is sent/retrieved, but no the call to the JS library that enables the sorting (which is located in the page footer).
    You will probably have to extend the theme or AJAX plugin that you are using to execute that JS call after the page with the table is loaded. Unfortunately, I don't really know how that can be done, so I can't help with it :-( Sorry.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic