WordPress.org

Forums

TablePress
[resolved] TablePress and DataTables Form Elements (2 posts)

  1. KelownaBear
    Member
    Posted 1 year ago #

    I am looking to implement this with my table:

    http://datatables.net/examples/api/form.html

    I've been able to include the form elements in the table and the submit button but when it is clicked I don't get the anticipated alert.

    Is there a particular place I should put the javascript code?
    Are there additional plugins/.js files that I should have?

    thanks,

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, you'll also need to include the JavaScript code into the page. That however needs to be connected with the DataTables initialization code that TablePress adds to the page. You can for example do this in a custom TablePress Extension. My suggestion would be to take the existing Extensions (from http://tablepress.org/extensions) that use DataTables as examples, to see how the JS code can be integrated.
    This will however require some PHP coding by you.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic