<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: AJAX Returning HTML (change of opinion)</title>
	<link>http://www.brianburridge.com/2006/04/20/ajax-returning-html-change-of-opinion/</link>
	<description>Brian Burridge shares his thoughts and opinions on Internet Software Architecture and Development, chronicles his current projects and areas of research, and give tips and tricks he discovers along the way.</description>
	<pubDate>Wed, 20 Aug 2008 23:42:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Brian Burridge</title>
		<link>http://www.brianburridge.com/2006/04/20/ajax-returning-html-change-of-opinion/#comment-6390</link>
		<pubDate>Mon, 23 Jul 2007 19:45:27 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/04/20/ajax-returning-html-change-of-opinion/#comment-6390</guid>
					<description>My preference to not respond to an AJAX request with HTML is because I prefer a more defined separation between data and markup, and because I like my data feeds to be reusable.

So, I prefer to make AJAX calls that result in XML in most cases. I can then parse the XML with Javascript or apply an XSL directly to it. That separates my formatting of the data from the data, and allows me to reuse that data feed in other circumstances, regardless of the styling of the data. If you include HTML around that data in the response you cannot use it again in a different situation.</description>
		<content:encoded><![CDATA[<p>My preference to not respond to an AJAX request with HTML is because I prefer a more defined separation between data and markup, and because I like my data feeds to be reusable.</p>
<p>So, I prefer to make AJAX calls that result in XML in most cases. I can then parse the XML with Javascript or apply an XSL directly to it. That separates my formatting of the data from the data, and allows me to reuse that data feed in other circumstances, regardless of the styling of the data. If you include HTML around that data in the response you cannot use it again in a different situation.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: aRo`</title>
		<link>http://www.brianburridge.com/2006/04/20/ajax-returning-html-change-of-opinion/#comment-6379</link>
		<pubDate>Sun, 22 Jul 2007 22:55:23 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/04/20/ajax-returning-html-change-of-opinion/#comment-6379</guid>
					<description>I would not use json because it's not compatible with older versions of php.

Instead i generate the html(if any) in my ajax page.

why wouldn't you do that ?</description>
		<content:encoded><![CDATA[<p>I would not use json because it&#8217;s not compatible with older versions of php.</p>
<p>Instead i generate the html(if any) in my ajax page.</p>
<p>why wouldn&#8217;t you do that ?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: What type of data should an Ajax call return?&#160;-&#160;Brian Burridge</title>
		<link>http://www.brianburridge.com/2006/04/20/ajax-returning-html-change-of-opinion/#comment-991</link>
		<pubDate>Thu, 20 Apr 2006 13:51:30 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/04/20/ajax-returning-html-change-of-opinion/#comment-991</guid>
					<description>[...] UPDATE: Ignore my reservations about HTML in AJAX responses and see my followup post: AJAX Returning HTML (change of opinion). [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] UPDATE: Ignore my reservations about HTML in AJAX responses and see my followup post: AJAX Returning HTML (change of opinion). [&#8230;]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
