Is it possible to use "WpDataTables" without shortcodes? For solving of my task, it is necessary to form the conditions of MySQL request for construction of the table from a database after the user specifies necessary parameters. I need do this without page reloading, with AJAX request. Could you tell me if there is a possibility to initiate updating of the table data by changing the parameters of the SQL query (or at least the values of the variables % VAR1%,% VAR2%, etc.) directly from the frontend without updating the page - via ajax request, and php hook or some other way?
If this is not possible, tell me how to use JS to apply a filter for the table column?
Maybe there is a spetial, more detailed documentation for developers for using hooks and filters?
Unfortunately this is not possible with build in features of the plugin but it can be probably done with some custom coding.
It is possible to place wpdatatable on the page or post without using shortcode than using do_shortcode() function. Like that you will be able to pass placeholders variables dynamically. Also you will need to create custom page template where you will add this function.
Could you tell me if I can use AJAX request to call do_shortcode('[wpdatatable id=1]') ( or something like do_shortcode('[wpdatatable id=1 table_view=regular var1=user_token_variable] ')) and than take html data back to frontend into $.ajax result? Or it's only for substitution variable in shortcode at the rendering of the page and couldn't using after that? Thanks again!
(Если у вас есть возможность говорить по русски, то так мне бы проще объяснить суть своей проблемы)
Sorry for late reponse we are currently busy with release of the Beta 2.0 version of our plugin.
I am not really sure if you could use AJAX to call do_shortcode function, but if you have defined variables you can use them in do_shortcode function to display the table dynamically based on these variables. You can maybe try to find some threads here about using AJAX and do_shortcode function together - Link 1- Link 2
Hello! I have a few questions.
Is it possible to use "WpDataTables" without shortcodes?
For solving of my task, it is necessary to form the conditions of MySQL request for construction of the table from a database after the user specifies necessary parameters. I need do this without page reloading, with AJAX request.
Could you tell me if there is a possibility to initiate updating of the table data by changing the parameters of the SQL query (or at least the values of the variables % VAR1%,% VAR2%, etc.) directly from the frontend without updating the page - via ajax request, and php hook or some other way?
If this is not possible, tell me how to use JS to apply a filter for the table column?
Maybe there is a spetial, more detailed documentation for developers for using hooks and filters?
Thanks for your work!
Hi dolinkov,
Thank you for your purchase.
Unfortunately this is not possible with build in features of the plugin but it can be probably done with some custom coding.
It is possible to place wpdatatable on the page or post without using shortcode than using do_shortcode() function. Like that you will be able to pass placeholders variables dynamically.
Also you will need to create custom page template where you will add this function.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, Bogdan!
Thanks for answer!
Could you tell me if I can use AJAX request to call do_shortcode('[wpdatatable id=1]') ( or something like do_shortcode('[wpdatatable id=1 table_view=regular var1=user_token_variable] ')) and than take html data back to frontend into $.ajax result?
Or it's only for substitution variable in shortcode at the rendering of the page and couldn't using after that?
Thanks again!
(Если у вас есть возможность говорить по русски, то так мне бы проще объяснить суть своей проблемы)
Hi dolinkov,
Sorry for late reponse we are currently busy with release of the Beta 2.0 version of our plugin.
I am not really sure if you could use AJAX to call do_shortcode function, but if you have defined variables you can use them in do_shortcode function to display the table dynamically based on these variables.
You can maybe try to find some threads here about using AJAX and do_shortcode function together - Link 1- Link 2
Thank you for understanding.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables