<?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: Detecting Ajax Events on the Server</title>
	<atom:link href="http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:50:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Julia</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-86492</link>
		<dc:creator>Julia</dc:creator>
		<pubDate>Wed, 01 Feb 2012 17:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-86492</guid>
		<description>If you’re ardealy sold on the idea of promises, you might consider using this library I ported from Tyler Close’s Waterken project in conjunction with the Google Caja team. It’s a very well-designed promise API that’s getting some traction in the CommonJS community. I also understand there might ardealy be efforts within Mozilla to build the Node API within Spidermonkey instead of V8. There’s also GPSEE, a CommonJS implementation, which Wes Garland mentioned he was getting to work with the Node API’s as well.</description>
		<content:encoded><![CDATA[<p>If you’re ardealy sold on the idea of promises, you might consider using this library I ported from Tyler Close’s Waterken project in conjunction with the Google Caja team. It’s a very well-designed promise API that’s getting some traction in the CommonJS community. I also understand there might ardealy be efforts within Mozilla to build the Node API within Spidermonkey instead of V8. There’s also GPSEE, a CommonJS implementation, which Wes Garland mentioned he was getting to work with the Node API’s as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery &#171; Strictly Tech Talk</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-83601</link>
		<dc:creator>jQuery &#171; Strictly Tech Talk</dc:creator>
		<pubDate>Tue, 05 Apr 2011 08:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-83601</guid>
		<description>[...] im very impressed, especially when people talk about how easy XMLHTTPREQUEST processing and shortcuts can be, and how easy  it is to apply across [...]</description>
		<content:encoded><![CDATA[<p>[...] im very impressed, especially when people talk about how easy XMLHTTPREQUEST processing and shortcuts can be, and how easy  it is to apply across [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fritzthecat</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-81772</link>
		<dc:creator>fritzthecat</dc:creator>
		<pubDate>Thu, 26 Aug 2010 12:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-81772</guid>
		<description>Well typed, I was just about to write the same thing!

On a similar note,
&lt;code&gt;$email = trim( $_POST[&#039;email&#039;] );&lt;/code&gt; 
could be changed to
&lt;code&gt;$email = isset( $_POST[&#039;email&#039;]  )? trim( $_POST[&#039;email&#039;]  ): &#039;&#039;;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Well typed, I was just about to write the same thing!</p>
<p>On a similar note,<br />
<code>$email = trim( $_POST['email'] );</code><br />
could be changed to<br />
<code>$email = isset( $_POST['email']  )? trim( $_POST['email']  ): '';</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Hernandez</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-80592</link>
		<dc:creator>Gabriel Hernandez</dc:creator>
		<pubDate>Thu, 01 Jul 2010 15:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-80592</guid>
		<description>Hi there,
Thanks a lot for your post.  I&#039;ve noticed a problem and perhaps you know the solution???  IE7 is not setting the variable &lt;code&gt;$_SERVER[ &#039;HTTP_X_REQUESTED_WITH&#039; ]&lt;/code&gt; so when I look for that variable in PHP, in IE7 it cannot be found!!.  The XHR request status is set to 200 -success-, but the variable  &lt;code&gt;&#039;HTTP_X_REQUESTED_WITH&#039; &lt;/code&gt; has not been set!. this is only when using IE 7.  

Any help is appreciated!.</description>
		<content:encoded><![CDATA[<p>Hi there,<br />
Thanks a lot for your post.  I&#8217;ve noticed a problem and perhaps you know the solution???  IE7 is not setting the variable <code>$_SERVER[ 'HTTP_X_REQUESTED_WITH' ]</code> so when I look for that variable in PHP, in IE7 it cannot be found!!.  The XHR request status is set to 200 -success-, but the variable  <code>'HTTP_X_REQUESTED_WITH' </code> has not been set!. this is only when using IE 7.  </p>
<p>Any help is appreciated!.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: es</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-80342</link>
		<dc:creator>es</dc:creator>
		<pubDate>Thu, 20 May 2010 15:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-80342</guid>
		<description>The jQuery form plugin doesn&#039;t send XMLHttpRequest header when an upload is posted because of using an iframe  for file upload.</description>
		<content:encoded><![CDATA[<p>The jQuery form plugin doesn&#8217;t send XMLHttpRequest header when an upload is posted because of using an iframe  for file upload.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Thrasher</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-80107</link>
		<dc:creator>Paul Thrasher</dc:creator>
		<pubDate>Fri, 23 Apr 2010 22:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-80107</guid>
		<description>Using @ to suppress errors is slow and probably the wrong thing to use in this context. Might wanna use &lt;code&gt;isset()&lt;/code&gt; instead:
&lt;pre&gt;&lt;code&gt;
function is_xhr() {
  return isset($_SERVER[&#039;HTTP_X_REQUESTED_WITH&#039;]) &amp;&amp; $_SERVER[&#039;HTTP_X_REQUESTED_WITH&#039;] == &#039;XMLHttpRequest&#039;;
}
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Using @ to suppress errors is slow and probably the wrong thing to use in this context. Might wanna use <code>isset()</code> instead:</p>
<pre><code>
function is_xhr() {
  return isset($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest';
}
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskApache</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-80066</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Mon, 19 Apr 2010 04:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-80066</guid>
		<description>This is great, thanks for posting such a nice article.  Actually, it looks like the whole site is filled with jquery gold.. awesome!</description>
		<content:encoded><![CDATA[<p>This is great, thanks for posting such a nice article.  Actually, it looks like the whole site is filled with jquery gold.. awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mauro De Giorgi</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-79987</link>
		<dc:creator>Mauro De Giorgi</dc:creator>
		<pubDate>Fri, 09 Apr 2010 15:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-79987</guid>
		<description>Django has a similar feature: &lt;code&gt;is_ajax()&lt;/code&gt;, that is a method of &lt;code&gt;HttpRequest&lt;/code&gt;.
For example in a view:
&lt;pre&gt;&lt;code&gt;
def my_view(request):
   if request.is_ajax():
      # respond to Ajax request
   else:
      # respond to normal request
&lt;/code&gt;&lt;/pre&gt;
Great article!</description>
		<content:encoded><![CDATA[<p>Django has a similar feature: <code>is_ajax()</code>, that is a method of <code>HttpRequest</code>.<br />
For example in a view:</p>
<pre><code>
def my_view(request):
   if request.is_ajax():
      # respond to Ajax request
   else:
      # respond to normal request
</code></pre>
<p>Great article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bernard</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-79914</link>
		<dc:creator>bernard</dc:creator>
		<pubDate>Thu, 25 Mar 2010 19:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-79914</guid>
		<description>I do not really like how the PHP and JS duplicate themselves creating success or failure html messages. Say, you need to update the message, or the markup. You need to do that twice. I understand you want to keep the examples simple, but I&#039;m missing here a note, that this is not the best approach (pointing people who want to learn eg. to Resig&#039;s templating). After all, this blog is about learning good practices :)</description>
		<content:encoded><![CDATA[<p>I do not really like how the PHP and JS duplicate themselves creating success or failure html messages. Say, you need to update the message, or the markup. You need to do that twice. I understand you want to keep the examples simple, but I&#8217;m missing here a note, that this is not the best approach (pointing people who want to learn eg. to Resig&#8217;s templating). After all, this blog is about learning good practices :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Detecting Ajax Events on the Server - Eureka Seven</title>
		<link>http://www.learningjquery.com/2010/03/detecting-ajax-events-on-the-server/comment-page-1#comment-79902</link>
		<dc:creator>Detecting Ajax Events on the Server - Eureka Seven</dc:creator>
		<pubDate>Wed, 24 Mar 2010 08:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1015#comment-79902</guid>
		<description>[...] via highlight_lines      Tags: Ajax, JavaScript, jQuery, Memo Comments RSS feed [...]</description>
		<content:encoded><![CDATA[<p>[...] via highlight_lines      Tags: Ajax, JavaScript, jQuery, Memo Comments RSS feed [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 7/20 queries in 0.006 seconds using disk: basic
Object Caching 371/376 objects using disk: basic
Content Delivery Network via learningjquery.kswedberg.netdna-cdn.com

Served from: www.learningjquery.com @ 2012-02-08 17:31:39 -->
