https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× Welcome to the ToolsJX forum!


create table data as I wish

More
9 years 7 months ago #3133

I just need to show a table in my website with results that I will update at any time and the users can see without refresh the webpage.
how I create the custom table using the table jx?

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3134

ok, I create the table in mysql and it is integrated in my article.
but now I see it doesn actualize it'self I have to refresh the browser.
what I have to do to active the ajax in the table, I want it shows the data in real time without to refresh the browser.
thank.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3137

Hi,

This functionality does not exist. But you can add it pretty easily if you know some javascript. You have to call function searchjx() periodically. You can find this function in components/com_grid/js/grid.js

The following user(s) said Thank You: jor

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3138

please can you help me to ad ajax to my table.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3139


that was the reason I bought this plugin.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #3140

Hi,

In file: components/com_grid/layouts/GridView.php under the pagination section (around row 334) after "if ($this->_config->paging){ " line, add the following code:

if($this->_config->tableCaption == 'TITLE_NAME'){
$field .="<script>
setInterval(function(){
searchjx('".$this->ajaxURL(" ", " ", 0 )."', '$this->_ID');
}, 10000);</script>";

and replace TITLE_NAME with your table title.

The following user(s) said Thank You: jor

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.134 seconds

Contact Us

Contact us on Discord

Contact us on Facebook