• Resolved scelicli

    (@scelicli)


    Hello,
    I have just installed TablePress and started evaluating its suitability for our purposes. The issue I have come across is when adding html to a cell. When I view the page containing the table in a browser I’m shown a “Message from webpage” alert box with the following message:

    “DataTables warning (table id = ‘tablepress-1’):Requested unknown parameter ‘2’ from the data source for row 2”

    This occurs with any html code I tried and occurs in IE 9, Chrome 25 and Firefox 19 (Windows machine). I’ve searched all 17 pages of support topics and have not found any mention of this issue. Did I miss something in the plugin setting or is this an unreported bug?

    Thanks,
    Sofia

    https://www.ads-software.com/extend/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    When this happens, either the HTML is invalid, or you are using the colspan/rowspan feature.
    If you post the link to the page with the table, I’ll gladly take a look.

    Regards,
    Tobias

    Thread Starter scelicli

    (@scelicli)

    Thanks for the quick reply, Tobias.

    I did have a rowspan in my table and can confirm that removing the rowspan results in an alert-free loading of the page. So how do I have both – use rowspan and html code within cells?

    I would need to provide you with login details in order for you to view the page so I prefer to email these details directly to you instead of posting them in a forum. Let me know if you still need to view the page and how I can send the details to you.

    Thanks,
    Sofia

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Sofia,

    ok, then the rowspan was the problem. (No need for me to view the site anymore, therefore.)

    You can use HTML code without problems, but unfortunately, you can not use the rowspan/colspan feature and the features of the DataTables JavaScript library (like search, sort, and pagination) at the same time. Tables with rowspan/colspan are not supported properly by that library.
    So, basically, you’ll have to decide what’s more important: rowspan/colspan or the features of the JS library. Then, either remove all colspan/rowspan from the cells, or uncheck the “Use DataTables” checkbox.

    Regards,
    Tobias

    Thread Starter scelicli

    (@scelicli)

    Got it! Thank you!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, no problem! You are very welcome!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HTML causing unknown parameter warning’ is closed to new replies.