1
I have a function on the index page where the div
#atualiza
load on the home page.php and update in x time.
index php.
var auto_refresh = setInterval (function()
{$('#atualiza').load('home.php');
cache:false;
return false;
},60000);
On the home.php page I have another script for users to put emoticons in posts.
home php.
<script type="text/javascript" src="js/jquery.emotions.js"></script>
<script type="text/javascript">
$(document).ready(function (){
$(".postagem").emotions();
});
</script>
The problem is this when opening the index page for the first time everything works normal but when the div #atualiza
if you update it no longer reads the script from the home page.php. I heard that load does not read the function ready
jQuery, I searched and found no solution.
How do I make the home.php page function continue running? Thank you in advance!
Can you put your HTML to better understand the structure? And by the way, the home page only has this javascript or has more?
– Sergio