<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JQuery- Auto Refresh Div Every X Seconds</title>
	<atom:link href="http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/</link>
	<description></description>
	<lastBuildDate>Wed, 25 Aug 2010 19:01:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Tommy Bustomi</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/comment-page-2/#comment-1061</link>
		<dc:creator>Tommy Bustomi</dc:creator>
		<pubDate>Thu, 19 Aug 2010 15:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=141#comment-1061</guid>
		<description>I&#039;m having trouble whit using redirect in response.php.
You see,I put if else condition in response.php.There is a condition that if its true the page will go to another page.
I ve used all redirect method that I know, but still it doest work.
Could you help me with that?
Thanks a lot</description>
		<content:encoded><![CDATA[<p>I&#8217;m having trouble whit using redirect in response.php.<br />
You see,I put if else condition in response.php.There is a condition that if its true the page will go to another page.<br />
I ve used all redirect method that I know, but still it doest work.<br />
Could you help me with that?<br />
Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/comment-page-2/#comment-1059</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Wed, 18 Aug 2010 11:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=141#comment-1059</guid>
		<description>Excellent script, thank you, you have saved me some dev time!</description>
		<content:encoded><![CDATA[<p>Excellent script, thank you, you have saved me some dev time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agent</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/comment-page-2/#comment-1058</link>
		<dc:creator>Agent</dc:creator>
		<pubDate>Mon, 16 Aug 2010 22:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=141#comment-1058</guid>
		<description>Hey, thanks for the code. I used it as a base to do a basic image change. I&#039;m new to AJAX so there may be a better way to do this but it is quite simple:

 
$(document).ready(function() { 
 
document.getElementById(&#039;ID1&#039;).innerHTML = &quot;&quot;; 
 
document.getElementById(&#039;ID2&#039;).innerHTML = &quot;&quot;; 
 
});  
 
var refreshId = setInterval(function() { 
 
document.getElementById(&#039;ID1&#039;).innerHTML = &quot;&quot;; 
 
document.getElementById(&#039;ID2&#039;).innerHTML = &quot;&quot;; 
 
}, 5000); 
 


Just use the  etc. to show where you want them.

I&#039;ve gone a bit more complex though. The .gif files are actually PHP files that are giving a image output. This allows you to do all sorts of fancy stuff behind the scenes. For example, I have a script that checks the database for various things and then presents a image stream depending on the results. In my case it is a simple green tick or red cross image from one of the many free vector packs online.
You can do something like this by using code along the lines of:



By using these two methods together you can make a dynamic real-time updating table. I used one from http://cssglobe.com/lab/tablecloth/ but there are plenty more about.

Now I have a nice table that changes it&#039;s green ticks and red cross images depending on the conditions fed to the PHP page every few seconds, without needing to do a full page update - fantastic! :)

Hope that gives someone a few ideas and some further code to play with.</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the code. I used it as a base to do a basic image change. I&#8217;m new to AJAX so there may be a better way to do this but it is quite simple:</p>
<p>$(document).ready(function() { </p>
<p>document.getElementById(&#8216;ID1&#8242;).innerHTML = &#8220;&#8221;; </p>
<p>document.getElementById(&#8216;ID2&#8242;).innerHTML = &#8220;&#8221;; </p>
<p>});  </p>
<p>var refreshId = setInterval(function() { </p>
<p>document.getElementById(&#8216;ID1&#8242;).innerHTML = &#8220;&#8221;; </p>
<p>document.getElementById(&#8216;ID2&#8242;).innerHTML = &#8220;&#8221;; </p>
<p>}, 5000); </p>
<p>Just use the  etc. to show where you want them.</p>
<p>I&#8217;ve gone a bit more complex though. The .gif files are actually PHP files that are giving a image output. This allows you to do all sorts of fancy stuff behind the scenes. For example, I have a script that checks the database for various things and then presents a image stream depending on the results. In my case it is a simple green tick or red cross image from one of the many free vector packs online.<br />
You can do something like this by using code along the lines of:</p>
<p>By using these two methods together you can make a dynamic real-time updating table. I used one from <a href="http://cssglobe.com/lab/tablecloth/" rel="nofollow">http://cssglobe.com/lab/tablecloth/</a> but there are plenty more about.</p>
<p>Now I have a nice table that changes it&#8217;s green ticks and red cross images depending on the conditions fed to the PHP page every few seconds, without needing to do a full page update &#8211; fantastic! <img src='http://www.brightcherry.co.uk/scribbles/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hope that gives someone a few ideas and some further code to play with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aderek</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/comment-page-2/#comment-1052</link>
		<dc:creator>Aderek</dc:creator>
		<pubDate>Fri, 06 Aug 2010 17:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=141#comment-1052</guid>
		<description>Hi, i modified this code and work very fine :) i use it to reload div with online information :)
Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, i modified this code and work very fine <img src='http://www.brightcherry.co.uk/scribbles/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  i use it to reload div with online information <img src='http://www.brightcherry.co.uk/scribbles/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/comment-page-2/#comment-1050</link>
		<dc:creator>Gustavo</dc:creator>
		<pubDate>Wed, 04 Aug 2010 18:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=141#comment-1050</guid>
		<description>I fix de problem for IE cache tha is the problem just add this code 

$.ajaxSetup({ cache: false });


var refreshId = setInterval(function()
{
	 $(&#039;#responsecontainer&#039;).fadeOut(&quot;slow&quot;).load(&#039;chi.php&#039;).fadeIn(&quot;slow&quot;);
}, 1000);
$.ajaxSetup({ cache: false });








GOOOD script</description>
		<content:encoded><![CDATA[<p>I fix de problem for IE cache tha is the problem just add this code </p>
<p>$.ajaxSetup({ cache: false });</p>
<p>var refreshId = setInterval(function()<br />
{<br />
	 $(&#8216;#responsecontainer&#8217;).fadeOut(&#8220;slow&#8221;).load(&#8216;chi.php&#8217;).fadeIn(&#8220;slow&#8221;);<br />
}, 1000);<br />
$.ajaxSetup({ cache: false });</p>
<p>GOOOD script</p>
]]></content:encoded>
	</item>
</channel>
</rss>
