<?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; javascript helpers zone</title>
	<atom:link href="http://www.pacecode.com/blog/tag/javascript-helpers-zone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pacecode.com/blog</link>
	<description>Tips, Scripts and More...</description>
	<lastBuildDate>Sat, 03 Dec 2011 09:45:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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>admin</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="text/javascript"&#62; function makAx() // this function to activate XMLHttpRequest Object { try { xm = new ActiveXObject("Msxml2.XMLHTTP"); return true; } catch (e) { try { xm = new ActiveXObject("Microsoft.XMLHTTP"); return true; } catch (e2) { xm = false; } } if (!xm &#38;&#38; typeof XMLHttpRequest != ‘undefined’) { xm = new XMLHttpRequest(); return [...]]]></description>
			<content:encoded><![CDATA[<div class="post-entry">
<p>&lt;head&gt;<br />
&lt;script type="text/javascript"&gt;<br />
function makAx() // this function to activate XMLHttpRequest Object<br />
{<br />
try<br />
{<br />
xm = new ActiveXObject("Msxml2.XMLHTTP");<br />
return true;<br />
}<br />
catch (e)<br />
{<br />
try<br />
{<br />
xm = new ActiveXObject("Microsoft.XMLHTTP");<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 = "external-page-for-db-query.php";   // this file will contains your db query<br />
callavail();<br />
}<br />
}<br />
function callavail()<br />
{<br />
xm.open("GET",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("showResult");  // result of "external-page-for-db-query.php" will come here<br />
str.innerHTML = response;<br />
setTimeout("showImages()",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="showResult"&gt;&lt;/div&gt; &lt;!–page result will be displayed here–&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
]]></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>

