• Resolved herrseeliger

    (@herrseeliger)


    Hi Tobias,

    i build CODE, a free HTML and CSS learn and experimental Resource for my pupils on the Arnold-Bode-Schule and everyone how is interested. We use your great TablePress Plugin in different ways.

    I ask for a special Thing. We use tablepress and the Extension “random rows” and “row details” for little Questions and a Solution.

    My Pupils want to reload new Questions simple per Click.

    Is there a way to reload byClick on a button this specific Table?
    Maybe with the Ajax Refresh Plugin?

    You can see it for example here: (look on the page at Mr. Cloud)
    https://code.arnoldbodeschule.de/elemente-semantisch-gliedern-und-selektieren/

    Used Shortcode for this Mr.Cloud is (without * asterix)
    [*table id=QA-02-html-text-tag show_rows=”random” random_rows=”1″ datatables_row_details=true datatables_row_details_columns=”B” /]

    And some CSS.

    Best regards

    Norman Seeliger

    PS: The Arnold-Bode-Schule will do a appropriate donate for your work. I think when the Project CODE starts in this September.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Unfortunately, I can’t really think of an easy way with AJAX here, due to the extra DataTables and Row Details functionality. That makes it more difficult, as simply replacing the HTML table is not possible with that.

    Instead, I would suggest that you look into using the regular DataTables Pagination feature. Instead of using the Display Random Row Extension, you could use the Extension from https://tablepress.org/extensions/table-row-order/ to show the entire table in a random order. Additionally, you would turn on Pagination for the table, while only showing one row at a time. Using the Pagination feature’s “Next” button, you could show the next question.
    Does this explanation make sense?

    And thanks for wanting to donate, I really appreciate that!

    Regards,
    Tobias

    Thread Starter herrseeliger

    (@herrseeliger)

    Thanks for the Tipp. It work in a Pre-Test.
    I think it will be a good solution.

    Regards,

    Norman

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    great! Good to hear that this will help!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Table Ajax Refresh "on-click"?’ is closed to new replies.