<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pacecode Blog &#187; page refresh with time delay</title>
	<atom:link href="http://www.pacecode.com/blog/tag/page-refresh-with-time-delay/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pacecode.com/blog</link>
	<description>Tips,Ideas, Free scripts and more...</description>
	<lastBuildDate>Sat, 24 Apr 2010 16:39:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Part of Page refresh using AJAX with timed delay</title>
		<link>http://www.pacecode.com/blog/2008/09/21/part-of-page-refresh-using-ajax-with-timed-delay/</link>
		<comments>http://www.pacecode.com/blog/2008/09/21/part-of-page-refresh-using-ajax-with-timed-delay/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 16:55:09 +0000</pubDate>
		<dc:creator>Raja MM</dc:creator>
				<category><![CDATA[page refresh]]></category>
		<category><![CDATA[php developers]]></category>
		<category><![CDATA[php scripts]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[auto page refresh using javascript]]></category>
		<category><![CDATA[javascript helpers zone]]></category>
		<category><![CDATA[javascript latest script]]></category>
		<category><![CDATA[javascript page refresh]]></category>
		<category><![CDATA[js page refresh]]></category>
		<category><![CDATA[page refresh using javascript]]></category>
		<category><![CDATA[page refresh with time delay]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=9</guid>
		<description><![CDATA[
&#60;head&#62;
&#60;script type=&#8221;text/javascript&#8221;&#62;
function makAx() // this function to activate XMLHttpRequest Object
{
try
{
xm = new ActiveXObject(&#8220;Msxml2.XMLHTTP&#8221;);
return true;
}
catch (e)
{
try
{
xm = new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);
return true;
}
catch (e2)
{
xm = false;
}
}
if (!xm &#38;&#38; typeof XMLHttpRequest != ‘undefined’)
{
xm = new XMLHttpRequest();
return true;
}
}
function showImages()
{
if(makAx())   //  XMLHttpRequest checked here
{
url = &#8220;external-page-for-db-query.php&#8221;;   // this file will contains your db query
callavail();
}
}
function callavail()
{
xm.open(&#8220;GET&#8221;,url,true); // This [...]]]></description>
			<content:encoded><![CDATA[<div class="post-entry">
<p>&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function makAx() // this function to activate XMLHttpRequest Object<br />
{<br />
try<br />
{<br />
xm = new ActiveXObject(&#8220;Msxml2.XMLHTTP&#8221;);<br />
return true;<br />
}<br />
catch (e)<br />
{<br />
try<br />
{<br />
xm = new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);<br />
return true;<br />
}<br />
catch (e2)<br />
{<br />
xm = false;<br />
}<br />
}<br />
if (!xm &amp;&amp; typeof XMLHttpRequest != ‘undefined’)<br />
{<br />
xm = new XMLHttpRequest();<br />
return true;<br />
}<br />
}<br />
function showImages()<br />
{<br />
if(makAx())   //  XMLHttpRequest checked here<br />
{<br />
url = &#8220;external-page-for-db-query.php&#8221;;   // this file will contains your db query<br />
callavail();<br />
}<br />
}<br />
function callavail()<br />
{<br />
xm.open(&#8220;GET&#8221;,url,true); // This is ajax functionality. It may have true(for synchronous request) or false(for asynchronous request)<br />
xm.onreadystatechange = cavail;<br />
xm.send(null);<br />
}<br />
function cavail()<br />
{<br />
if(xm.readyState == 4) // If ready state reached<br />
{<br />
var response = xm.responseText;<br />
var str = document.getElementById(&#8220;showResult&#8221;);  // result of &#8220;external-page-for-db-query.php&#8221; will come here<br />
str.innerHTML = response;<br />
setTimeout(&#8220;showImages()&#8221;,1000); // here 1000 represents one second for time delay. showImage() function will be called with the specified time delay<br />
}<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;div id=&#8221;showResult&#8221;&gt;&lt;/div&gt; &lt;!–page result will be displayed here–&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Share this post</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;submitHeadline=Part+of+Page+refresh+using+AJAX+with+timed+delay&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;title=Part+of+Page+refresh+using+AJAX+with+timed+delay" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;title=Part+of+Page+refresh+using+AJAX+with+timed+delay" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;title=Part+of+Page+refresh+using+AJAX+with+timed+delay" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;bm_description=Part+of+Page+refresh+using+AJAX+with+timed+delay" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;T=Part+of+Page+refresh+using+AJAX+with+timed+delay" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;title=Part+of+Page+refresh+using+AJAX+with+timed+delay" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;title=Part+of+Page+refresh+using+AJAX+with+timed+delay" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Part+of+Page+refresh+using+AJAX+with+timed+delay+@+http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.pacecode.com%2Fblog%2F2008%2F09%2F21%2Fpart-of-page-refresh-using-ajax-with-timed-delay%2F&amp;t=Part+of+Page+refresh+using+AJAX+with+timed+delay" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.pacecode.com/blog/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2008/09/21/part-of-page-refresh-using-ajax-with-timed-delay/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
