WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. KelownaBear
    Member
    Posted 9 months 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 9 months 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

Reply

You must log in to post.

About this Plugin

About this Topic