<?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: Working with jQuery&#8217;s AJAX, Promises and Deferred objects	</title>
	<atom:link href="https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/feed/" rel="self" type="application/rss+xml" />
	<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/</link>
	<description>I turn code into captivating user experiences for the web</description>
	<lastBuildDate>Mon, 12 Aug 2024 15:11:18 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>
	<item>
		<title>
		By: widheg		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-68261</link>

		<dc:creator><![CDATA[widheg]]></dc:creator>
		<pubDate>Fri, 24 Feb 2023 00:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-68261</guid>

					<description><![CDATA[The first code snippet in section &quot;Enter Promises&quot;: From where did &#039;results&#039; come?]]></description>
			<content:encoded><![CDATA[<p>The first code snippet in section &#8220;Enter Promises&#8221;: From where did &#8216;results&#8217; come?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: [SOLVED] Is there any way to wait for AJAX response and halt execution? &#8211; BugsFixing		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-26682</link>

		<dc:creator><![CDATA[[SOLVED] Is there any way to wait for AJAX response and halt execution? &#8211; BugsFixing]]></dc:creator>
		<pubDate>Tue, 29 Mar 2022 11:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-26682</guid>

					<description><![CDATA[[&#8230;] Nice read e.g. here. [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Nice read e.g. here. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Renato		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-22799</link>

		<dc:creator><![CDATA[Renato]]></dc:creator>
		<pubDate>Fri, 25 Mar 2022 11:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-22799</guid>

					<description><![CDATA[The best article I have ever red on the www about this topics ....]]></description>
			<content:encoded><![CDATA[<p>The best article I have ever red on the www about this topics &#8230;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Is there any way to wait for AJAX response and halt execution? - PhotoLens		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-10094</link>

		<dc:creator><![CDATA[Is there any way to wait for AJAX response and halt execution? - PhotoLens]]></dc:creator>
		<pubDate>Tue, 01 Mar 2022 17:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-10094</guid>

					<description><![CDATA[[&#8230;] Nice read e.g. here. [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Nice read e.g. here. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michael Soriano		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1594</link>

		<dc:creator><![CDATA[Michael Soriano]]></dc:creator>
		<pubDate>Thu, 20 Aug 2020 18:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-1594</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1593&quot;&gt;Jim&lt;/a&gt;.

Yes - good catch. Thanks.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1593">Jim</a>.</p>
<p>Yes &#8211; good catch. Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jim		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1593</link>

		<dc:creator><![CDATA[Jim]]></dc:creator>
		<pubDate>Sat, 15 Aug 2020 19:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-1593</guid>

					<description><![CDATA[In the example
function getData (){
   return $.get(&#039;/page.php&#039;);
}
getData().done(function(data){
  console.log(results); //filled!
});
Should not line 6 use data instead of results?]]></description>
			<content:encoded><![CDATA[<p>In the example<br />
function getData (){<br />
   return $.get(&#8216;/page.php&#8217;);<br />
}<br />
getData().done(function(data){<br />
  console.log(results); //filled!<br />
});<br />
Should not line 6 use data instead of results?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ed P		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1592</link>

		<dc:creator><![CDATA[Ed P]]></dc:creator>
		<pubDate>Wed, 22 Jan 2020 16:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-1592</guid>

					<description><![CDATA[I&#039;m struggling a bit. In your first example, you try to get the value into a variable and it&#039;s undefined:
var results = getData();
console.log(results); //empty!
In none of the other examples do you try to put it in a variable. Instead you either do console.log or you say &quot;do something.&quot; I actually want it in a variable so it can persist for future use without additional ajax calls, but even assigning the variable inside .done, it still shows up undefined if you try to access it on the next line after .done. It&#039;s still the same old async problem.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m struggling a bit. In your first example, you try to get the value into a variable and it&#8217;s undefined:<br />
var results = getData();<br />
console.log(results); //empty!<br />
In none of the other examples do you try to put it in a variable. Instead you either do console.log or you say &#8220;do something.&#8221; I actually want it in a variable so it can persist for future use without additional ajax calls, but even assigning the variable inside .done, it still shows up undefined if you try to access it on the next line after .done. It&#8217;s still the same old async problem.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: 施耐庵		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1591</link>

		<dc:creator><![CDATA[施耐庵]]></dc:creator>
		<pubDate>Thu, 13 Sep 2018 09:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-1591</guid>

					<description><![CDATA[好文章！！nice article ! thx]]></description>
			<content:encoded><![CDATA[<p>好文章！！nice article ! thx</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kumar		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1590</link>

		<dc:creator><![CDATA[Kumar]]></dc:creator>
		<pubDate>Tue, 04 Sep 2018 16:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-1590</guid>

					<description><![CDATA[Thanks a lot. Very useful, applied immediately (Multiple Dynamic AJAX calls) , works very well.]]></description>
			<content:encoded><![CDATA[<p>Thanks a lot. Very useful, applied immediately (Multiple Dynamic AJAX calls) , works very well.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michael Soriano		</title>
		<link>https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1589</link>

		<dc:creator><![CDATA[Michael Soriano]]></dc:creator>
		<pubDate>Thu, 28 Jun 2018 21:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsoriano.com/?p=6022#comment-1589</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1588&quot;&gt;fooberry&lt;/a&gt;.

you have to do something like:
&lt;code&gt;
var articledata = getArticle(articlenumber);
articledata.done(function(data){
 console.log(data); //this should have your article
})
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://michaelsoriano.com/working-with-jquerys-ajax-promises-and-deferred-objects/#comment-1588">fooberry</a>.</p>
<p>you have to do something like:<br />
<code><br />
var articledata = getArticle(articlenumber);<br />
articledata.done(function(data){<br />
 console.log(data); //this should have your article<br />
})<br />
</code></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
