<?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: 5 Things: Working with Zend Framework and Ajax</title>
	<atom:link href="http://www.smooka.com/blog/2009/04/17/5-things-working-with-zend-framework-and-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smooka.com/blog/2009/04/17/5-things-working-with-zend-framework-and-ajax/</link>
	<description>From programming to music!</description>
	<lastBuildDate>Thu, 02 Sep 2010 14:13:19 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Julian</title>
		<link>http://www.smooka.com/blog/2009/04/17/5-things-working-with-zend-framework-and-ajax/comment-page-1/#comment-804</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Thu, 29 Oct 2009 20:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.smooka.com/blog/?p=60#comment-804</guid>
		<description>Johan,
Great to hear that you solved it.. echoing out in your controller should be fine. It can be considered a response. If i&#039;m not using &lt;code&gt;$this-&gt;_helper-&gt;json()&lt;/code&gt; to return a response, I will always echo it out and exit, to avoid the script from returning the corresponding view.
You can also use &lt;code&gt;die($response);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Johan,<br />
Great to hear that you solved it.. echoing out in your controller should be fine. It can be considered a response. If i&#8217;m not using <code>$this->_helper->json()</code> to return a response, I will always echo it out and exit, to avoid the script from returning the corresponding view.<br />
You can also use <code>die($response);</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Smits</title>
		<link>http://www.smooka.com/blog/2009/04/17/5-things-working-with-zend-framework-and-ajax/comment-page-1/#comment-803</link>
		<dc:creator>Johan Smits</dc:creator>
		<pubDate>Thu, 29 Oct 2009 20:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.smooka.com/blog/?p=60#comment-803</guid>
		<description>OK, solved.
If I replace &#039;$response =&#039; by &#039;echo&#039; everything goes fine. But I think it&#039;s not nice to have an echo statement in my asyncController.</description>
		<content:encoded><![CDATA[<p>OK, solved.<br />
If I replace &#8216;$response =&#8217; by &#8216;echo&#8217; everything goes fine. But I think it&#8217;s not nice to have an echo statement in my asyncController.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Smits</title>
		<link>http://www.smooka.com/blog/2009/04/17/5-things-working-with-zend-framework-and-ajax/comment-page-1/#comment-802</link>
		<dc:creator>Johan Smits</dc:creator>
		<pubDate>Thu, 29 Oct 2009 19:46:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.smooka.com/blog/?p=60#comment-802</guid>
		<description>That&#039;s nice, but I tried to make this work with Scriptaculous. But I can&#039;t get the auto completion from the server.
So I have:
&lt;code&gt;
public function acgetstudentbynameAction() 
{
	$test = array(&#039;Aaftink&#039;,&#039;Aagten&#039;, &#039;Aalbers&#039;, &#039;Aalberts&#039;, &#039;Aalbrecht&#039;);
	$response = $this-&gt;_helper-&gt;autoCompleteScriptaculous-&gt;prepareAutoCompletion($test);		
}
&lt;/code&gt;
But I get no response (empty) from the server.
What is going wrong? Can you help?</description>
		<content:encoded><![CDATA[<p>That&#8217;s nice, but I tried to make this work with Scriptaculous. But I can&#8217;t get the auto completion from the server.<br />
So I have:<br />
<code><br />
public function acgetstudentbynameAction()<br />
{<br />
	$test = array('Aaftink','Aagten', 'Aalbers', 'Aalberts', 'Aalbrecht');<br />
	$response = $this-&gt;_helper-&gt;autoCompleteScriptaculous-&gt;prepareAutoCompletion($test);<br />
}<br />
</code><br />
But I get no response (empty) from the server.<br />
What is going wrong? Can you help?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
