Posted by Marek
2014-09-12

Hello, I'm calling /web/conn/index.php from ajax on my Wordpress page like this:

<script>
$(document).ready(function(){
var callAjax = function(){
$.ajax({
method:'get',
async: true,
cache: false,
url:'/web/conn/index.php',
success: function(data){
$("#apadm").php(data);
}
});
}
setInterval(callAjax,10000);
});
</script>

<div class="apadm" tid="1001"></div>
<div class="apadm" tid="1002"></div>


When I make active in admin panel single poll (for example tid="1001") it is showing on Wordpress page. But when I make turn active off - this make no change on Wordpress site. Please help - what am I doing wrong?
Posted by Tom
2014-09-13

Hi,

>But when I make turn active off - this make no change on Wordpress site.

So you are saying that the poll appears even if you turn off the active field?
That's strange. Maybe the output is still in the cache?