Get started on a auto refreshing
Need som directions to find my way.
First contact with jQuery.
I want to auto refresh part of a page in a WordPress blog. already have a page geting the resoult i want from a include_result1.php and include_result2.php
Want to make this results to be updated for visitor every 1 second.
I am Using this:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#responsecontainer").load("include_result1.php");
jQuery("#responsecontainer").load("include_result2.php");
var refreshId = setInterval(function() {
jQuery("#responsecontainer").load(include_result1.php');
jQuery("#responsecontainer").load(include_result2.php');
}, 1000);
});
</script>
When i run this page the result from 1 and 2 keeps blinking alternation from one to another. It is very ugly. Is there a way to get this results beeing updated but in a quietly way as live content?
thks