- Posts: 7
- Thank you received: 0
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.
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.
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
Please Log in or Create an account to join the conversation.
please can you help me to ad ajax to my table.
Please Log in or Create an account to join the conversation.
that was the reason I bought this plugin.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.