WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] JQuery Tooltip (8 posts)

  1. Hockeyguy1925
    Member
    Posted 11 months ago #

    Hi again Tobias,
    I am currently trying to add this tool tip shortcode to numerous cells in a table using TablePress. Is this possible? If so please let me know how.

    I am trying to use it in a way that when a user hovers over a team record -say most goals in a season for example-that has a few players that have tied the record. I want to show the first player who recorded the most goals in a season and then when hovered it shows the players who have tied the record. Make sense? I have emailed link to test site so you can see how I have incorporated Table press into site.

    Here is link to shortcode for JQuery Tooltip.
    http://mysitemyway.com/docs/index.php/JQuery_Tooltips#Tooltips

    http://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    thanks for the question.

    I'm not really sure what the problem is here. If that's a regular WordPress Shortcode, you can easily add it to the table cells. Depending on how the Shortcode loads its JavaScript code, it might be necessary to add the cache_table_output=false parameter to the [table] Shortcode.

    Then, you would just add the content that shall be shown in the tooltip to that tooltip Shortcode.

    Regards,
    Tobias

  3. Hockeyguy1925
    Member
    Posted 10 months ago #

    Hi Tobias,
    Thank you for your response. I have tried just a quick copy and paste of shortcode used in the example code in above link. It seems to work fine in a blank table I used to test it, but in most of my tables I have used

    "aoColumnDefs": [ { "bVisible": false, "aTargets": [6] }]

    (6 being just a random column number for this)

    I also added cache_table_output parameter as you mention and it is not working. Or at least I cant get to work.

    I have sent another email with a couple of links.

    Thanks

  4. TobiasBg
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    no, the JS does not seem to be the problem.
    Instead, the jQuery tooltips library is apparently not adding its JS file to the page, if there's no tooltip outside of a table. (That's because it probably has some check to only embed the file if there is a tooltip. It can however not recognize them inside the tables.)

    So, my suggestion: Just add an empty tooltip somewhere outside the table.

    Regards,
    Tobias

  5. Hockeyguy1925
    Member
    Posted 10 months ago #

    As always, thank you. That did it.

  6. TobiasBg
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    awesome! :-) Good to hear that this helped!

    Best wishes,
    Tobias

  7. Hockeyguy1925
    Member
    Posted 10 months ago #

    Sorry Tobias,
    Most of the examples from first link dont work. the very last wone does but the rest to not. I have cleared cache from browser and nothing.
    Any other ideas?

  8. TobiasBg
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    do all of the tables on that page have cache_table_output=false? Other than that, I have no real idea what you mean. There's just one tooltip on the season-records page and that works (but the text is empty).

    Regards,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic

Tags