<?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>A Programmer with Microsoft tools &#187; jquery</title>
	<atom:link href="http://msprogrammer.serviciipeweb.ro/category/javascript/jquery-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://msprogrammer.serviciipeweb.ro</link>
	<description>A programmer journey through code, books and tools</description>
	<lastBuildDate>Mon, 14 May 2012 06:59:14 +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>Jquery  and multiple Ajax</title>
		<link>http://msprogrammer.serviciipeweb.ro/2011/03/21/jquery-and-multiple-ajax/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2011/03/21/jquery-and-multiple-ajax/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 05:19:04 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[ajax]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/?p=680</guid>
		<description><![CDATA[I have had 2 occasions where I need to know when the ajax call have been finished:


 When in the beginning of page I have to load specific items that the user have been seen last time
When the page was full with ajax call  &#8211; and there was also a &#8220;submit&#8221; button that should send [...]]]></description>
			<content:encoded><![CDATA[<div id="taaa">I have had 2 occasions where I need to know when the ajax call have been finished:</div>
<div>
<ol>
<li> When in the beginning of page I have to load specific items that the user have been seen last time</li>
<li>When the page was full with ajax call  &#8211; and there was also a &#8220;submit&#8221; button that should send the information (saved already ) that the user have finished entering the fields .</li>
</ol>
</div>
<div>So &#8211; jquery have 2 methods: ajaxStart and ajaxStop.</div>
<div>Code:</div>
<div>Put 2 divs on the page :</div>
<div>&lt;div id=&#8221;divWait&#8221; style=&#8221;display:none&#8221;&gt; Please wait&#8230;&lt;/div&gt;</div>
<div>&lt;div id=&#8221;divOK&#8221; style=&#8221;display:none&#8221;&gt; All data submitted&lt;/div&gt;</div>
<div>And put this on javascript:</div>
<div>
<pre class="brush: jscript;">
$(“#divWait”).ajaxStart(function() {
$(“#divWait”).show();
$(“#divOK”).hide();
});
 $(“#divWait”).ajaxStop(function() {
$(“#divWait”).hide();
$(“#divOK”).show();
});
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2011/03/21/jquery-and-multiple-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

