Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the link! That helps a lot!

    In your case, the reason for the problem is that you have combined cells in the head row of the table (via #colspan#) and that you are using the Features of the DataTables JS library (like sorting and search) on this table.
    Unfortunately, the external DataTables JavaScript library does not support tables with such combined cells. You will therefore have to decide: Either remove all #colspan# from the table, or stop using the features of the DataTables JS library.

    Regards,
    Tobias

    tremblayly,

    The javascript error:

    Unknown RPC service: widget-interactive-I0_

    is not related to the TablePress code like WooCommerce support said. It’s google button issue.

    However, I see other error:

    TypeError: g[(f - d)] is undefined
    [Break On This Error] 	
    
    ....parentNode;h.appendChild(b);""!==a.oScroll.sX&&""!==a.oScroll.sXInner?b.style.w...

    Regards,
    Darek

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Darek,

    that error with the widget is not actually an error, but more like an informative message, I think.

    The other error (that breaks the JS) is related to TablePress, and the reason is the usage of combined cells in a table that uses DataTables features.

    Regards,
    Tobias

    Yes Tobias, The first one is not a big issue, the second one looks more seriously and breaks javascript.

    Thread Starter tremblayly

    (@tremblayly)

    Hi Tobias,

    I have disabled the external DataTables JavaScript library and kept my #colspan# in my header. I refreshed my page and all works perfectly and as expected!

    You are absolutely correct Tobias. My problem is solved.

    Thank you so very much.

    Lyse

    However tremblayly can use colspan… but done by CSS trick ?? Like smart hiding some borders ?? It will not be colspan (in the code) but for end-user it will be seen as colspan ?? So there is no need to turn off DataTables features ??

    …but there is need little more CSS work ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Lyse,

    great to hear that this helped! ?? That’s really nice!

    Darek: Doing this with CSS is not really possible in this case, I think. The reason is that the text in the middle cell in the head row is wider than the cells in the second row. This will therefore lead to weird spacing, without the usage of #colspan#.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘TablePress Javascript error’ is closed to new replies.