<?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: Fetching posts in WordPress and ExpressionEngine with jQuery and AJAX</title>
	<atom:link href="http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/</link>
	<description>Web design &#38; development and print design services located in The Gap, Brisbane</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:21:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Free Tutorials Combining Both jQuery and Wordpress &#124; KSSP</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-2/#comment-2648</link>
		<dc:creator>Free Tutorials Combining Both jQuery and Wordpress &#124; KSSP</dc:creator>
		<pubDate>Fri, 16 Jul 2010 08:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2648</guid>
		<description>[...] Fetching posts in WordPress with jQuery and AJAX  [...]</description>
		<content:encoded><![CDATA[<p>[...] Fetching posts in WordPress with jQuery and AJAX  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alen</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-2/#comment-2638</link>
		<dc:creator>Alen</dc:creator>
		<pubDate>Tue, 29 Jun 2010 10:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2638</guid>
		<description>Ok, John, you&#039;re right, and I was thinking myself exactly the same thing ... I just wanted to contribute something back, as your code helped me to learn some things ...
Bye and have a good life.</description>
		<content:encoded><![CDATA[<p>Ok, John, you&#8217;re right, and I was thinking myself exactly the same thing &#8230; I just wanted to contribute something back, as your code helped me to learn some things &#8230;<br />
Bye and have a good life.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Faulds</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-2/#comment-2637</link>
		<dc:creator>John Faulds</dc:creator>
		<pubDate>Tue, 29 Jun 2010 09:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2637</guid>
		<description>Alen, if you want to share your code with others, you&#039;re better off creating your own blog post and linking to it.</description>
		<content:encoded><![CDATA[<p>Alen, if you want to share your code with others, you&#8217;re better off creating your own blog post and linking to it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alen</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-2/#comment-2636</link>
		<dc:creator>Alen</dc:creator>
		<pubDate>Tue, 29 Jun 2010 09:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2636</guid>
		<description>WOW ! What happened here ?? Ok, it seems I can&#039;t submit code here ... Do you want me to send you the code ?</description>
		<content:encoded><![CDATA[<p>WOW ! What happened here ?? Ok, it seems I can&#8217;t submit code here &#8230; Do you want me to send you the code ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alen</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-2/#comment-2635</link>
		<dc:creator>Alen</dc:creator>
		<pubDate>Tue, 29 Jun 2010 09:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2635</guid>
		<description>Hi, I would like to share my solution for ajax loading posts. This code works without the need for page, it just loads posts in same div. Works great for me, hope it will work for you too.
&lt;code&gt;
		&lt;a href=&quot;&quot;&gt;&lt;/a&gt;
		 :
		&lt;?php echo &#039;&#039;; ?&gt;
		 :  	
		&lt;img src=&quot;/images/indicator.gif&quot;/&gt;
	
	jQuery(document).ready(function(){
		$(&#039;#loader_image img&#039;).hide();
		//when a link inside our div id=&quot;navigation&quot; is clicked
		jQuery(&#039;#navigation a&#039;).live(&#039;click&#039;, function(e){
				e.preventDefault();
				var link = jQuery(this).attr(&#039;href&#039;);
				$(&#039;#loader_image img&#039;).fadeIn(200);
				//replace the div id=&quot;ajax-text&quot; with the new content
				jQuery(&#039;#ajax-text&#039;).load(link+&#039; #ajax-text&#039;,function(){$(&#039;#ajax-text *&#039;).fadeIn(500);$(&#039;#loader_image img&#039;).fadeOut(200);	});
		});
	});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi, I would like to share my solution for ajax loading posts. This code works without the need for page, it just loads posts in same div. Works great for me, hope it will work for you too.<br />
<code><br />
		&lt;a href=&quot;"&gt;<br />
		 :<br />
		&lt;?php echo &#039;'; ?&gt;<br />
		 :<br />
		&lt;img src=&quot;/images/indicator.gif"/&gt;</p>
<p>	jQuery(document).ready(function(){<br />
		$('#loader_image img').hide();<br />
		//when a link inside our div id="navigation" is clicked<br />
		jQuery('#navigation a').live('click', function(e){<br />
				e.preventDefault();<br />
				var link = jQuery(this).attr('href');<br />
				$('#loader_image img').fadeIn(200);<br />
				//replace the div id="ajax-text" with the new content<br />
				jQuery('#ajax-text').load(link+' #ajax-text',function(){$('#ajax-text *').fadeIn(500);$('#loader_image img').fadeOut(200);	});<br />
		});<br />
	});<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Faulds</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-2/#comment-2631</link>
		<dc:creator>John Faulds</dc:creator>
		<pubDate>Sat, 26 Jun 2010 02:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2631</guid>
		<description>Thanks for the detailed heads-up Nathan. :)</description>
		<content:encoded><![CDATA[<p>Thanks for the detailed heads-up Nathan. <img src='http://www.tyssendesign.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan L</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-1/#comment-2630</link>
		<dc:creator>Nathan L</dc:creator>
		<pubDate>Sat, 26 Jun 2010 01:11:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2630</guid>
		<description>One issue to keep in mind for EE:
The cms keeps track of the last five urls visited in the user session in the $SESS-&gt;tracker.  The ajax calls to your template url will appear in this array.  When Logging in and use of some forms will attempt to reload the last visited page.

YMMV of course. In any case, you don&#039;t want your users redirected to your ajax template.

One way to overcome this issue, though not without drawbacks, is to shift the contents $SESS-&gt;tracker via PHP in your template. The drawback is you do lose some tracker data. Perhaps not a high price to pay considering the cheapness of the solution.

A maybe stronger solution is to extend the Session class (via a Extension) to not track particular urls (the tracker method already does this to a small extent).  This is more elegant and can be accomplished in the session_start and session_end hooks by capturing the tracking cookie data at session start and then recreating $SESS-&gt;tracker with the cookie data if we are on a ajax template url.</description>
		<content:encoded><![CDATA[<p>One issue to keep in mind for EE:<br />
The cms keeps track of the last five urls visited in the user session in the $SESS-&gt;tracker.  The ajax calls to your template url will appear in this array.  When Logging in and use of some forms will attempt to reload the last visited page.</p>
<p>YMMV of course. In any case, you don&#8217;t want your users redirected to your ajax template.</p>
<p>One way to overcome this issue, though not without drawbacks, is to shift the contents $SESS-&gt;tracker via PHP in your template. The drawback is you do lose some tracker data. Perhaps not a high price to pay considering the cheapness of the solution.</p>
<p>A maybe stronger solution is to extend the Session class (via a Extension) to not track particular urls (the tracker method already does this to a small extent).  This is more elegant and can be accomplished in the session_start and session_end hooks by capturing the tracking cookie data at session start and then recreating $SESS-&gt;tracker with the cookie data if we are on a ajax template url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 Tutorials Combining Both Wordpress and jQuery - Speckyboy Design Magazine</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-1/#comment-2629</link>
		<dc:creator>30 Tutorials Combining Both Wordpress and jQuery - Speckyboy Design Magazine</dc:creator>
		<pubDate>Thu, 24 Jun 2010 13:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2629</guid>
		<description>[...] Fetching posts in Wordpress with jQuery and&#xA0;AJAX View Tutorial &#xBB; In this tutorial you will learn how to allow site visitor to load posts from a [...]</description>
		<content:encoded><![CDATA[<p>[...] Fetching posts in WordPress with jQuery and&#xA0;AJAX View Tutorial &#xBB; In this tutorial you will learn how to allow site visitor to load posts from a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 tutorial para utilizar jQuery en nuestro Wordpress &#124; code</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-1/#comment-2628</link>
		<dc:creator>30 tutorial para utilizar jQuery en nuestro Wordpress &#124; code</dc:creator>
		<pubDate>Thu, 24 Jun 2010 07:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2628</guid>
		<description>[...] Fetching posts in WordPress with jQuery and AJAX [...]</description>
		<content:encoded><![CDATA[<p>[...] Fetching posts in WordPress with jQuery and AJAX [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Resources and links &#8211; 18 May 2010</title>
		<link>http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/comment-page-1/#comment-2596</link>
		<dc:creator>Resources and links &#8211; 18 May 2010</dc:creator>
		<pubDate>Tue, 18 May 2010 17:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.tyssendesign.com.au/?p=308#comment-2596</guid>
		<description>[...] Fetching posts in Wordpress and ExpressionEngine with jQuery and AJAX — Tyssen Design [...]</description>
		<content:encoded><![CDATA[<p>[...] Fetching posts in WordPress and ExpressionEngine with jQuery and AJAX — Tyssen Design [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
