<?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: How to call php from ajax in every second using Jquery</title>
	<atom:link href="http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Tue, 07 Feb 2012 08:10:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: bedava oyunlar</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-6349</link>
		<dc:creator>bedava oyunlar</dc:creator>
		<pubDate>Fri, 28 Jan 2011 02:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-6349</guid>
		<description>Thanks thanks thanks i am looking for this.</description>
		<content:encoded><![CDATA[<p>Thanks thanks thanks i am looking for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elyas</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-5620</link>
		<dc:creator>elyas</dc:creator>
		<pubDate>Sun, 05 Sep 2010 02:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-5620</guid>
		<description>its great tutorial it really helped.

how can i assign the returned value of  Ajax from php file to a JavaScript  variable and do some calculations.

for example i return the sum value of a field from myself table and i want to do some calculation with JavaScript on the page.</description>
		<content:encoded><![CDATA[<p>its great tutorial it really helped.</p>
<p>how can i assign the returned value of  Ajax from php file to a JavaScript  variable and do some calculations.</p>
<p>for example i return the sum value of a field from myself table and i want to do some calculation with JavaScript on the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gold</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-5496</link>
		<dc:creator>Gold</dc:creator>
		<pubDate>Sun, 13 Jun 2010 11:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-5496</guid>
		<description>I have a problem that drive me crazy .. and if some one can help .. it would be appreciated .. I have 2 pages .. page1,page2 .. page1 showing the information of page2 and continue to refresh every 5 seconds using this ajax .. page2 has javascript included and it works when I&#039;m showing page2 only .. but when page1 calls page2 to show its contents .. the javascript dont work...I tried to include the javascript with both page1 and page2 but still wont work for me .. please help</description>
		<content:encoded><![CDATA[<p>I have a problem that drive me crazy .. and if some one can help .. it would be appreciated .. I have 2 pages .. page1,page2 .. page1 showing the information of page2 and continue to refresh every 5 seconds using this ajax .. page2 has javascript included and it works when I&#8217;m showing page2 only .. but when page1 calls page2 to show its contents .. the javascript dont work&#8230;I tried to include the javascript with both page1 and page2 but still wont work for me .. please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adriano Meira</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-5442</link>
		<dc:creator>Adriano Meira</dc:creator>
		<pubDate>Fri, 14 May 2010 01:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-5442</guid>
		<description>Hello Friend I am here in Brazil and I really liked your article helped me a lot, I wonder if the clock is to continue after pressing the stop button?</description>
		<content:encoded><![CDATA[<p>Hello Friend I am here in Brazil and I really liked your article helped me a lot, I wonder if the clock is to continue after pressing the stop button?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aji Prabowo</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-5426</link>
		<dc:creator>Aji Prabowo</dc:creator>
		<pubDate>Thu, 06 May 2010 10:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-5426</guid>
		<description>Very useful indeed, somehow I felt enlightened after reading this article. Many Thanks.</description>
		<content:encoded><![CDATA[<p>Very useful indeed, somehow I felt enlightened after reading this article. Many Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rakshit</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-5421</link>
		<dc:creator>Rakshit</dc:creator>
		<pubDate>Wed, 05 May 2010 17:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-5421</guid>
		<description>Hi,

Great code. Thanks Roshan.
@Viktor - thanks for the useful tips for security.

Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Great code. Thanks Roshan.<br />
@Viktor &#8211; thanks for the useful tips for security.</p>
<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hi</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-5249</link>
		<dc:creator>hi</dc:creator>
		<pubDate>Mon, 15 Mar 2010 11:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-5249</guid>
		<description>hi a am unable to solve the ajax tripple droupdown how to solve this problemm</description>
		<content:encoded><![CDATA[<p>hi a am unable to solve the ajax tripple droupdown how to solve this problemm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pligg.com</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-4929</link>
		<dc:creator>pligg.com</dc:creator>
		<pubDate>Thu, 17 Dec 2009 19:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-4929</guid>
		<description>&lt;strong&gt;How to call php from ajax in every second using Jquery...&lt;/strong&gt;

Few days ago, Mike emailed me and asked me how can i call a server script( php file) from jQuery in every second.Since, there was no built-in mechanism for this in jQuery, I came up with this solution of displaying time of server using Ajax, PHP and jQ...</description>
		<content:encoded><![CDATA[<p><strong>How to call php from ajax in every second using Jquery&#8230;</strong></p>
<p>Few days ago, Mike emailed me and asked me how can i call a server script( php file) from jQuery in every second.Since, there was no built-in mechanism for this in jQuery, I came up with this solution of displaying time of server using Ajax, PHP and jQ&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-4908</link>
		<dc:creator>Viktor</dc:creator>
		<pubDate>Mon, 14 Dec 2009 22:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-4908</guid>
		<description>Hi, i was using the same script... but then i realize that if u keep the page open for an hour, the script would made... what... 3600 calls to the server?!

For &quot;security&quot; reasons i have to change my script... I suggest to get the date(&#039;H&#039;), date(&#039;i&#039;) and date(&#039;s&#039;) values with PHP and then increment and calculate the time with jQuery...</description>
		<content:encoded><![CDATA[<p>Hi, i was using the same script&#8230; but then i realize that if u keep the page open for an hour, the script would made&#8230; what&#8230; 3600 calls to the server?!</p>
<p>For &#8220;security&#8221; reasons i have to change my script&#8230; I suggest to get the date(&#8216;H&#8217;), date(&#8216;i&#8217;) and date(&#8216;s&#8217;) values with PHP and then increment and calculate the time with jQuery&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asupna</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-4689</link>
		<dc:creator>asupna</dc:creator>
		<pubDate>Thu, 15 Oct 2009 08:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-4689</guid>
		<description>your post help me alot
thanks
@asupna</description>
		<content:encoded><![CDATA[<p>your post help me alot<br />
thanks<br />
@asupna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: echedey</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-4674</link>
		<dc:creator>echedey</dc:creator>
		<pubDate>Fri, 09 Oct 2009 16:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-4674</guid>
		<description>Thanks a lot! This howto has been very very useful for me :)</description>
		<content:encoded><![CDATA[<p>Thanks a lot! This howto has been very very useful for me <img src='http://roshanbh.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saltpetre</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-4309</link>
		<dc:creator>saltpetre</dc:creator>
		<pubDate>Sun, 02 Aug 2009 23:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-4309</guid>
		<description>Dude this script is perfectly..i was looking for smthing like this for the last couple of days thanks

I need i more help...

I m using this script int values in a table coming from mysql 

but the values are generated  via a function the take 2 args and query the db and comes with a value which is update on the table every 1 sec via this scirpt.


how can i use this script to do it for all the table entires

my fucntion is 

function get_avail($lot_num, $type)
{
require (&quot;settings/config.php&quot;);//db connection info
require (&quot;settings/opendb.php&quot;);//open connection to db

//construct query

$query = &quot;SELECT * FROM&quot; .&quot; &quot;. $lot_num .&quot; &quot;. &quot;WHERE lot_type =&quot; .&quot; &quot;.&quot;&#039;&quot;. $type .&quot;&#039;&quot;.&quot; &quot;. &quot;and avail_flag =&#039;1&#039;&quot;;
$result=mysql_query($query);
$avail=mysql_num_rows($result);

echo $avail;

}
get_avail(&quot;lot_a&quot;,&#039;purple&#039;);


plz help...thanks in advance</description>
		<content:encoded><![CDATA[<p>Dude this script is perfectly..i was looking for smthing like this for the last couple of days thanks</p>
<p>I need i more help&#8230;</p>
<p>I m using this script int values in a table coming from mysql </p>
<p>but the values are generated  via a function the take 2 args and query the db and comes with a value which is update on the table every 1 sec via this scirpt.</p>
<p>how can i use this script to do it for all the table entires</p>
<p>my fucntion is </p>
<p>function get_avail($lot_num, $type)<br />
{<br />
require (&#8220;settings/config.php&#8221;);//db connection info<br />
require (&#8220;settings/opendb.php&#8221;);//open connection to db</p>
<p>//construct query</p>
<p>$query = &#8220;SELECT * FROM&#8221; .&#8221; &#8220;. $lot_num .&#8221; &#8220;. &#8220;WHERE lot_type =&#8221; .&#8221; &#8220;.&#8221;&#8216;&#8221;. $type .&#8221;&#8216;&#8221;.&#8221; &#8220;. &#8220;and avail_flag =&#8217;1&#8242;&#8221;;<br />
$result=mysql_query($query);<br />
$avail=mysql_num_rows($result);</p>
<p>echo $avail;</p>
<p>}<br />
get_avail(&#8220;lot_a&#8221;,&#8217;purple&#8217;);</p>
<p>plz help&#8230;thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amjad</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-3889</link>
		<dc:creator>Amjad</dc:creator>
		<pubDate>Fri, 24 Apr 2009 14:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-3889</guid>
		<description>An Excellent effort but pls explain how can i get the same result in textfield instead of div.</description>
		<content:encoded><![CDATA[<p>An Excellent effort but pls explain how can i get the same result in textfield instead of div.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-3837</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 17 Apr 2009 08:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-3837</guid>
		<description>Great article.  Actually I had all of it and it was working in FF.  But IE was not.  I noticed your adding randal=.  So I read the article you linked to as well.

Both are great and it fixed my problems in IE.

Thanks alot!!</description>
		<content:encoded><![CDATA[<p>Great article.  Actually I had all of it and it was working in FF.  But IE was not.  I noticed your adding randal=.  So I read the article you linked to as well.</p>
<p>Both are great and it fixed my problems in IE.</p>
<p>Thanks alot!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html/comment-page-1#comment-3754</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Sun, 05 Apr 2009 03:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html#comment-3754</guid>
		<description>re: vsvnmurthy
To send more than one element value from html form to php script using Ajax, in jQuery - load, you can do something like this,
 
$(&quot;#myID&quot;).load(&quot;test.php&quot;,{&quot;name&quot; : &quot;Adam&quot; , &quot;site&quot;:&quot;61dh.com&quot;});</description>
		<content:encoded><![CDATA[<p>re: vsvnmurthy<br />
To send more than one element value from html form to php script using Ajax, in jQuery &#8211; load, you can do something like this,</p>
<p>$(&#8220;#myID&#8221;).load(&#8220;test.php&#8221;,{&#8220;name&#8221; : &#8220;Adam&#8221; , &#8220;site&#8221;:&#8221;61dh.com&#8221;});</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/20 queries in 0.653 seconds using disk: basic
Object Caching 406/407 objects using disk: basic

Served from: roshanbh.com.np @ 2012-02-09 06:14:34 -->
