<?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>get &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/get/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>$.ajax in jQuery</title>
		<link>/2009/11/02/ajax-in-jquery/</link>
		<comments>/2009/11/02/ajax-in-jquery/#respond</comments>
		<pubDate>Mon, 02 Nov 2009 18:34:44 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">/?p=787</guid>
		<description><![CDATA[AJAX and jQuery Just in breve as a powerful JavaScript library jQuery wraps the ability to call XHR within a built in interface. There are several ways to implement asynchronous calls. In fact you can call either .load or .post to perform custom calls. $.load In the case of .load you can chain it on &#8230; <a href="/2009/11/02/ajax-in-jquery/" class="more-link">Continue reading <span class="screen-reader-text">$.ajax in jQuery</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/11/03/ajax-datatypes-in-jquery-format-and-access/" rel="bookmark" title="AJAX dataTypes in jQuery. Format and access.">AJAX dataTypes in jQuery. Format and access. </a></li>
<li><a href="/2009/03/19/jquery-ajax-script-call/" rel="bookmark" title="JQuery ajax script call">JQuery ajax script call </a></li>
<li><a href="/2009/09/29/jquery-stop-an-ajax-call/" rel="bookmark" title="jQuery &#8211; stop an ajax call!">jQuery &#8211; stop an ajax call! </a></li>
<li><a href="/2011/04/05/jquery-unbind/" rel="bookmark" title="jQuery.unbind()">jQuery.unbind() </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>AJAX and jQuery</h2>
<p>Just in breve as a powerful JavaScript library <a title="jQuery" href="http://jquery.com/" target="_blank">jQuery</a> wraps the ability to call XHR within a built in interface. There are several ways to implement asynchronous calls. In fact you can call either <strong>.load</strong> or <strong>.post</strong> to perform custom calls.</p>
<h2>$.load</h2>
<p>In the case of <strong>.load</strong> you can chain it on every returned object from a custom jQuery selector: <strong>$(&#8216;div&#8217;).load(..</strong> than the content of the DIV is filled with the returned text.</p>
<h2>But what if I want a OK and Error handlers?</h2>
<p>The .load method doesn&#8217;t give such &#8220;complex&#8221; functionality. Than the built in <strong>$.ajax</strong> method comes in help. You can specify the URI, method, data, dataType, onSuccess, onError handlers, etc.<span id="more-787"></span></p>
<p>There you have:</p>
<blockquote>
<pre>$.ajax({
   url : 'www.example.com', // string
   data : { param1 : 'value1', param2 : 'value2' },
   // will result in www.example.com/?param1=value1&amp;para...
   dataType : {json|html|script},
   success : function(text) {
      // where text is returned text
   },
   error : function() { // handle errors }
});</pre>
</blockquote>
<p>Well of course you can find the <a title="jQuery AJAX" href="http://docs.jquery.com/Ajax/jQuery.ajax#options" target="_blank">full spec</a> on jQuery <a title="jQuery Docs" href="http://docs.jquery.com/" target="_blank">docs</a> page. What I intended to do is that $.ajax function gives you the real power to call different type of data types and to handle the responses in different fine tuned ways.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/11/03/ajax-datatypes-in-jquery-format-and-access/" rel="bookmark" title="AJAX dataTypes in jQuery. Format and access.">AJAX dataTypes in jQuery. Format and access. </a></li>
<li><a href="/2009/03/19/jquery-ajax-script-call/" rel="bookmark" title="JQuery ajax script call">JQuery ajax script call </a></li>
<li><a href="/2009/09/29/jquery-stop-an-ajax-call/" rel="bookmark" title="jQuery &#8211; stop an ajax call!">jQuery &#8211; stop an ajax call! </a></li>
<li><a href="/2011/04/05/jquery-unbind/" rel="bookmark" title="jQuery.unbind()">jQuery.unbind() </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/11/02/ajax-in-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
