D
D
DevTeam2015-11-24 00:33:03
PHP
DevTeam, 2015-11-24 00:33:03

How can I make it update in the background?

d6b90bab59cb4d4382498fd48951d7cd.jpg
Help with the decision how to make the module (the module is indicated on the screenshot) updated in the background where to edit?
Am I digging right (recent.tpl)? specify the correct path plz)
did so but it turned out that it shows the whole page

)    function show()  
        {  
            $.ajax({  
                cache: false,  
                success: function(html){  
                    $("#content").html(html);  
                }  
            });  
        }  
      
        $(document).ready(function(){  
            show();  
            setInterval('show()',1000);  
        });

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2015-11-24
@Stalker_RED

setInterval(show,1000);

A
Alexey, 2015-11-24
@JustGAST

It updates the whole page because of this command:
You are looking for the "content" container, but you need to find the element of this table. And apparently the entire page is returned to the html variable, but you only need to get the table.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question