<?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: Ajaxify Your Zend_Form Validation with jQuery</title>
	<atom:link href="http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/</link>
	<description>free Zend Framework screencasts. Video tutorials to get you up to speed with different parts of the Zend Framework and enterprise PHP development.</description>
	<lastBuildDate>Wed, 01 Feb 2012 00:49:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Matthew Setter</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-2/#comment-31012</link>
		<dc:creator>Matthew Setter</dc:creator>
		<pubDate>Thu, 05 Jan 2012 15:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-31012</guid>
		<description>Hey Jon,

thanks for the screencast. I believe that this may be just what I&#039;m looking for on a current project.</description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>thanks for the screencast. I believe that this may be just what I&#8217;m looking for on a current project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil C</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-2/#comment-26696</link>
		<dc:creator>Neil C</dc:creator>
		<pubDate>Sun, 27 Nov 2011 08:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-26696</guid>
		<description>Thank you so much.  This video explains exactly what I wanted to do!

When a validation error message is produced you are already in the next input field as this is triggered on blur and tabbing back to correct this then displays a second validation error message for the field you are leaving to go back and correct the original error, if for example, input is required.

My question is, how do we get the cursor to stay in the first input if a validation error is produced, and maybe change the background colour of the input?

PS: I can only see 3 of the 54 comments below - is there a way to display all of these?</description>
		<content:encoded><![CDATA[<p>Thank you so much.  This video explains exactly what I wanted to do!</p>
<p>When a validation error message is produced you are already in the next input field as this is triggered on blur and tabbing back to correct this then displays a second validation error message for the field you are leaving to go back and correct the original error, if for example, input is required.</p>
<p>My question is, how do we get the cursor to stay in the first input if a validation error is produced, and maybe change the background colour of the input?</p>
<p>PS: I can only see 3 of the 54 comments below &#8211; is there a way to display all of these?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emmanuel</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-25008</link>
		<dc:creator>Emmanuel</dc:creator>
		<pubDate>Fri, 28 Oct 2011 13:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-25008</guid>
		<description>What is Form_Registration. I can&#039;t find this. Can you help me?</description>
		<content:encoded><![CDATA[<p>What is Form_Registration. I can&#8217;t find this. Can you help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quyendt</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-20695</link>
		<dc:creator>quyendt</dc:creator>
		<pubDate>Wed, 06 Jul 2011 15:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-20695</guid>
		<description>Hi.
When I go to function $.post() in doValidation() in phtml file.
i not work, although the previous code
    $(&quot;input&quot;).each(function()
    {
        data[$(this).attr(&#039;name&#039;)] = $(this).val();
    });
works fine for me.</description>
		<content:encoded><![CDATA[<p>Hi.<br />
When I go to function $.post() in doValidation() in phtml file.<br />
i not work, although the previous code<br />
    $(&#8220;input&#8221;).each(function()<br />
    {<br />
        data[$(this).attr('name')] = $(this).val();<br />
    });<br />
works fine for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-18425</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Fri, 13 May 2011 10:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-18425</guid>
		<description>mmmmm, Nice
Thanks again</description>
		<content:encoded><![CDATA[<p>mmmmm, Nice<br />
Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shutdown</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-17125</link>
		<dc:creator>shutdown</dc:creator>
		<pubDate>Sun, 10 Apr 2011 22:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-17125</guid>
		<description>Hi,
I&#039;m a biginer and I have a problem, when I tab out in webbrowser I get an error in firebug:

The requested URL /index/validateform was not found on this server.

dont know where to look for help...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m a biginer and I have a problem, when I tab out in webbrowser I get an error in firebug:</p>
<p>The requested URL /index/validateform was not found on this server.</p>
<p>dont know where to look for help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-17025</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 08 Apr 2011 15:17:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-17025</guid>
		<description>Hello,

Does anyone have a solution for the file field?

It always returns the max file size error and it seems to just post the file name and not the file, which is fine, but it would be nice to have some file auto detection and then ignore them.

I know a few replied with isPartialValid but I&#039;m unsure where and when to impliment them. Atm this is my entire partial I use for forms now:

headScript()-&gt;captureStart(); ?&gt;

$(function() { 

	$(&#039;.zend_form input, .zend_form textarea&#039;).blur(function() {
		var formElementId = ($(this).parent().prev().find(&#039;label&#039;).attr(&#039;for&#039;));
		doValidation(formElementId);
	});
});


function doValidation(id) {
	
	var url = &#039;//json/validateform/form_name/form); ?&gt;&#039;;
	var data = {};

	$(&#039;.zend_form input, .zend_form textarea&#039;).each(function() {
		data[$(this).attr(&#039;name&#039;)] = $(this).val();
	});
	
	$.post(url, data, function(resp) {
		$(&#039;#&#039;+id).parent().find(&#039;.errors&#039;).remove();
		$(&#039;#&#039;+id).parent().append(getErrorHtml(resp[id], id));
	}, &#039;json&#039;);

};

function getErrorHtml(formErrors, id) {
	
	var o = &#039;&#039;;
	if (formErrors != null) {
	var o = &#039;&#039;;
	
	for (errorKey in formErrors) {
		o += &#039;&#039;+formErrors[errorKey]+&#039;&#039;;
	}
	o += &#039;&#039;;
	}
	return o;
}

headScript()-&gt;captureEnd(); ?&gt;


form) &amp;&amp; $this-&gt;form-&gt;getErrorMessages()) {
	echo $this-&gt;partial(&#039;partials/errors.phtml&#039;, array(&#039;errors&#039; =&gt; $this-&gt;form-&gt;getErrorMessages(), &#039;translate&#039; =&gt; $this-&gt;translate));
}
?&gt;

errorMsg)) { ?&gt;
	errorMsg; ?&gt;


form; ?&gt;



And my json Controller is:

_getParam(&#039;form_name&#039;);
		$f 			= new $form_name();
		$data 		= $this-&gt;_getAllParams();

		$f-&gt;isValid($this-&gt;_getAllParams());
		$f-&gt;isValidPartial($this-&gt;_getAllParams());
		$json 		= $f-&gt;getMessages();
		$this-&gt;_helper-&gt;json($json);
	}


	public function isValidPartial(array $data) {
		unset($data[&#039;image_&#039;]);
		unset($data[&#039;csrf&#039;]);
		parent::isValidPartial($data);
	}


}</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Does anyone have a solution for the file field?</p>
<p>It always returns the max file size error and it seems to just post the file name and not the file, which is fine, but it would be nice to have some file auto detection and then ignore them.</p>
<p>I know a few replied with isPartialValid but I&#8217;m unsure where and when to impliment them. Atm this is my entire partial I use for forms now:</p>
<p>headScript()-&gt;captureStart(); ?&gt;</p>
<p>$(function() { </p>
<p>	$(&#8216;.zend_form input, .zend_form textarea&#8217;).blur(function() {<br />
		var formElementId = ($(this).parent().prev().find(&#8216;label&#8217;).attr(&#8216;for&#8217;));<br />
		doValidation(formElementId);<br />
	});<br />
});</p>
<p>function doValidation(id) {</p>
<p>	var url = &#8216;//json/validateform/form_name/form); ?&gt;&#8217;;<br />
	var data = {};</p>
<p>	$(&#8216;.zend_form input, .zend_form textarea&#8217;).each(function() {<br />
		data[$(this).attr('name')] = $(this).val();<br />
	});</p>
<p>	$.post(url, data, function(resp) {<br />
		$(&#8216;#&#8217;+id).parent().find(&#8216;.errors&#8217;).remove();<br />
		$(&#8216;#&#8217;+id).parent().append(getErrorHtml(resp[id], id));<br />
	}, &#8216;json&#8217;);</p>
<p>};</p>
<p>function getErrorHtml(formErrors, id) {</p>
<p>	var o = &#8221;;<br />
	if (formErrors != null) {<br />
	var o = &#8221;;</p>
<p>	for (errorKey in formErrors) {<br />
		o += &#8221;+formErrors[errorKey]+&#8221;;<br />
	}<br />
	o += &#8221;;<br />
	}<br />
	return o;<br />
}</p>
<p>headScript()-&gt;captureEnd(); ?&gt;</p>
<p>form) &amp;&amp; $this-&gt;form-&gt;getErrorMessages()) {<br />
	echo $this-&gt;partial(&#8216;partials/errors.phtml&#8217;, array(&#8216;errors&#8217; =&gt; $this-&gt;form-&gt;getErrorMessages(), &#8216;translate&#8217; =&gt; $this-&gt;translate));<br />
}<br />
?&gt;</p>
<p>errorMsg)) { ?&gt;<br />
	errorMsg; ?&gt;</p>
<p>form; ?&gt;</p>
<p>And my json Controller is:</p>
<p>_getParam(&#8216;form_name&#8217;);<br />
		$f 			= new $form_name();<br />
		$data 		= $this-&gt;_getAllParams();</p>
<p>		$f-&gt;isValid($this-&gt;_getAllParams());<br />
		$f-&gt;isValidPartial($this-&gt;_getAllParams());<br />
		$json 		= $f-&gt;getMessages();<br />
		$this-&gt;_helper-&gt;json($json);<br />
	}</p>
<p>	public function isValidPartial(array $data) {<br />
		unset($data['image_']);<br />
		unset($data['csrf']);<br />
		parent::isValidPartial($data);<br />
	}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stark</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-16094</link>
		<dc:creator>stark</dc:creator>
		<pubDate>Fri, 11 Mar 2011 15:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-16094</guid>
		<description>Hi,

first of all - great cast (as always:). I have found out, that this way of ajax validation works wrong, when the input element is filled by jquery`s datepicker and is set to required.

It seems the problem is that the &quot;blur&quot; event is fired when the datepicker window appears (because at that time thi input looses focus) - so ajax grabs its value value to early (it is empty). And the result is the validation error (Zend_Validate_NotEmpty::IS_EMPTYNOT_EMPTY).

Do you have any suggestions? Thanks :)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>first of all &#8211; great cast (as always:). I have found out, that this way of ajax validation works wrong, when the input element is filled by jquery`s datepicker and is set to required.</p>
<p>It seems the problem is that the &#8220;blur&#8221; event is fired when the datepicker window appears (because at that time thi input looses focus) &#8211; so ajax grabs its value value to early (it is empty). And the result is the validation error (Zend_Validate_NotEmpty::IS_EMPTYNOT_EMPTY).</p>
<p>Do you have any suggestions? Thanks <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ganesh</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-16044</link>
		<dc:creator>Ganesh</dc:creator>
		<pubDate>Wed, 09 Mar 2011 19:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-16044</guid>
		<description>Nice Article, Thanks</description>
		<content:encoded><![CDATA[<p>Nice Article, Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-16001</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Mon, 07 Mar 2011 20:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-16001</guid>
		<description>Thank you !
:)</description>
		<content:encoded><![CDATA[<p>Thank you !<br />
 <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: netcom</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-15413</link>
		<dc:creator>netcom</dc:creator>
		<pubDate>Tue, 15 Feb 2011 09:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-15413</guid>
		<description>wow, this is amazing, I hope soon can put it all together on my web.</description>
		<content:encoded><![CDATA[<p>wow, this is amazing, I hope soon can put it all together on my web.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-13428</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Mon, 13 Dec 2010 21:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-13428</guid>
		<description>Doing this works for most of the form elements, but it broke Captcha and CSRF.

I got my code working with those element types by using isValidPartial instead of isValid in my validate Action and by overriding isValidPartial in my form to unset any data related to captcha and csrf

    public function isValidPartial(array $data)
    {
        unset($data[&#039;captcha&#039;]);
        unset($data[&#039;csrf&#039;]);

        parent::isValidPartial($data);
    }</description>
		<content:encoded><![CDATA[<p>Doing this works for most of the form elements, but it broke Captcha and CSRF.</p>
<p>I got my code working with those element types by using isValidPartial instead of isValid in my validate Action and by overriding isValidPartial in my form to unset any data related to captcha and csrf</p>
<p>    public function isValidPartial(array $data)<br />
    {<br />
        unset($data['captcha']);<br />
        unset($data['csrf']);</p>
<p>        parent::isValidPartial($data);<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-12404</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 15 Nov 2010 08:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-12404</guid>
		<description>Hi Poul,
please give us some more information about your problem, maybe log or stack trace will be helpfull :-)

Best reagards!</description>
		<content:encoded><![CDATA[<p>Hi Poul,<br />
please give us some more information about your problem, maybe log or stack trace will be helpfull <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Best reagards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poul</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-12194</link>
		<dc:creator>Poul</dc:creator>
		<pubDate>Thu, 11 Nov 2010 22:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-12194</guid>
		<description>Hi

I have some problem with form element &quot;autocoplete&quot; and validate this form when i put youre script.

u have some idea why?

greate tutorial..

cheers m8</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I have some problem with form element &#8220;autocoplete&#8221; and validate this form when i put youre script.</p>
<p>u have some idea why?</p>
<p>greate tutorial..</p>
<p>cheers m8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maryann Gianikas</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-11150</link>
		<dc:creator>Maryann Gianikas</dc:creator>
		<pubDate>Thu, 14 Oct 2010 23:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-11150</guid>
		<description>5.  Good day, As I was looking over the internet, I found this, your weblog website. In fact most of the individuals comments are relevant and, you&#039;re brilliant in making write ups.</description>
		<content:encoded><![CDATA[<p>5.  Good day, As I was looking over the internet, I found this, your weblog website. In fact most of the individuals comments are relevant and, you&#8217;re brilliant in making write ups.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The-Loader</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-10984</link>
		<dc:creator>The-Loader</dc:creator>
		<pubDate>Tue, 05 Oct 2010 20:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-10984</guid>
		<description>Thanks...that&#039;s really amazing.
Very easy to use :-)</description>
		<content:encoded><![CDATA[<p>Thanks&#8230;that&#8217;s really amazing.<br />
Very easy to use <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asmaa</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-10748</link>
		<dc:creator>asmaa</dc:creator>
		<pubDate>Mon, 27 Sep 2010 09:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-10748</guid>
		<description>the video is not working ,it stops after 12 minutes 
would you please reload it</description>
		<content:encoded><![CDATA[<p>the video is not working ,it stops after 12 minutes<br />
would you please reload it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-10404</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Tue, 14 Sep 2010 19:05:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-10404</guid>
		<description>Thanks for this excellent post!</description>
		<content:encoded><![CDATA[<p>Thanks for this excellent post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C4rLoS</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-8588</link>
		<dc:creator>C4rLoS</dc:creator>
		<pubDate>Sat, 17 Jul 2010 15:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-8588</guid>
		<description>Hello,
I have a problem.
I followed the tutorial, but I do not work.
I am not getting any error message.
What can I check?

Thanks</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I have a problem.<br />
I followed the tutorial, but I do not work.<br />
I am not getting any error message.<br />
What can I check?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ttanzi</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-8380</link>
		<dc:creator>Ttanzi</dc:creator>
		<pubDate>Thu, 08 Jul 2010 04:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-8380</guid>
		<description>Hi Guys,
I loved the tutorial, very very usefull...especially for someone like me that is just starting to learn the zend framework.
I have a question, and i will be grate if someone could help me to figure out a good answer (anyway I&#039;m talking with experts, than i not have doubt that the answer will arrive:)).
I built a form (using zend form, and all the suggestions that i found very usefull in all the tutorial that i saw until now).
Now this form have also ajaxification..that works pretty well.
Now what I want to do is be able to manage my ajax function (jquery) using the message of errors that come from the zend structure.
In other words, I&#039;d like to create a function (php) that will take as parameter two variable: $status (that can be 0 if the zend form validate bring errors, and 1 when everything is ok and we can just continue the registration process), and $txt( that will carry exactly the error  message that come from zend,in other words what i can take with the getmessage(), or if there are not error will just bring a jump to the next page(the registration is done)).
In this way, if i pass to the jquery function that handle the ajax call, the parameter txt or status, i can controll the way in which the div that i create to show the errors, can be hidden or not.
How i can realize such type of function in zend? I done already in php, but not using zend framework, what i can&#039;t figure out is how i can create a msg function that show the errors as i said before (msg($status,$txt))?
There is a way to access to the errors array in zend, and build a custom error class that will create this msg function?
What i&#039;m trying to do, is to be able to do something like in the facebook registration form.
Some suggetsions??
thanks so much
TT</description>
		<content:encoded><![CDATA[<p>Hi Guys,<br />
I loved the tutorial, very very usefull&#8230;especially for someone like me that is just starting to learn the zend framework.<br />
I have a question, and i will be grate if someone could help me to figure out a good answer (anyway I&#8217;m talking with experts, than i not have doubt that the answer will arrive:)).<br />
I built a form (using zend form, and all the suggestions that i found very usefull in all the tutorial that i saw until now).<br />
Now this form have also ajaxification..that works pretty well.<br />
Now what I want to do is be able to manage my ajax function (jquery) using the message of errors that come from the zend structure.<br />
In other words, I&#8217;d like to create a function (php) that will take as parameter two variable: $status (that can be 0 if the zend form validate bring errors, and 1 when everything is ok and we can just continue the registration process), and $txt( that will carry exactly the error  message that come from zend,in other words what i can take with the getmessage(), or if there are not error will just bring a jump to the next page(the registration is done)).<br />
In this way, if i pass to the jquery function that handle the ajax call, the parameter txt or status, i can controll the way in which the div that i create to show the errors, can be hidden or not.<br />
How i can realize such type of function in zend? I done already in php, but not using zend framework, what i can&#8217;t figure out is how i can create a msg function that show the errors as i said before (msg($status,$txt))?<br />
There is a way to access to the errors array in zend, and build a custom error class that will create this msg function?<br />
What i&#8217;m trying to do, is to be able to do something like in the facebook registration form.<br />
Some suggetsions??<br />
thanks so much<br />
TT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name is XB</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-7421</link>
		<dc:creator>name is XB</dc:creator>
		<pubDate>Wed, 19 May 2010 15:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-7421</guid>
		<description>I like this video,very good.</description>
		<content:encoded><![CDATA[<p>I like this video,very good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: René Pardon</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-7193</link>
		<dc:creator>René Pardon</dc:creator>
		<pubDate>Thu, 06 May 2010 22:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-7193</guid>
		<description>What a wonderful cast!!
I&#039;ll implement this type of javascript validation soon in my projects :)</description>
		<content:encoded><![CDATA[<p>What a wonderful cast!!<br />
I&#8217;ll implement this type of javascript validation soon in my projects <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evoratec</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-7164</link>
		<dc:creator>evoratec</dc:creator>
		<pubDate>Tue, 04 May 2010 20:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-7164</guid>
		<description>Sorry, no way. My mistake.</description>
		<content:encoded><![CDATA[<p>Sorry, no way. My mistake.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evoratec</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-7163</link>
		<dc:creator>evoratec</dc:creator>
		<pubDate>Tue, 04 May 2010 19:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-7163</guid>
		<description>First, thanks for your greats videos.

In jquery code of index.phtml you could use

var data = jQuery(this).serialize();</description>
		<content:encoded><![CDATA[<p>First, thanks for your greats videos.</p>
<p>In jquery code of index.phtml you could use</p>
<p>var data = jQuery(this).serialize();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: whmeroe</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-7110</link>
		<dc:creator>whmeroe</dc:creator>
		<pubDate>Sun, 02 May 2010 15:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-7110</guid>
		<description>Any idea on how to do this with mootools? and the whole form not just as you leave a field.  that would be great.</description>
		<content:encoded><![CDATA[<p>Any idea on how to do this with mootools? and the whole form not just as you leave a field.  that would be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meroe</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-7103</link>
		<dc:creator>Meroe</dc:creator>
		<pubDate>Sun, 02 May 2010 00:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-7103</guid>
		<description>Any way to set the key in the json response?  IE isEmpty,recordFound etc....it would make iterating the json a lot easier.  Thoughts?</description>
		<content:encoded><![CDATA[<p>Any way to set the key in the json response?  IE isEmpty,recordFound etc&#8230;.it would make iterating the json a lot easier.  Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cranespud</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-7056</link>
		<dc:creator>Cranespud</dc:creator>
		<pubDate>Thu, 29 Apr 2010 17:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-7056</guid>
		<description>Nice screencast keep up the good work!!</description>
		<content:encoded><![CDATA[<p>Nice screencast keep up the good work!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dantan</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-7041</link>
		<dc:creator>dantan</dc:creator>
		<pubDate>Thu, 29 Apr 2010 08:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-7041</guid>
		<description>isValidPartial() solves the problem as described above</description>
		<content:encoded><![CDATA[<p>isValidPartial() solves the problem as described above</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dantan</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6913</link>
		<dc:creator>dantan</dc:creator>
		<pubDate>Tue, 27 Apr 2010 14:09:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6913</guid>
		<description>Works really good, except on File Uploads.

The validator always returns fileUploadErrorIniSize error.

Maybe anyone experienced the same or has a solution</description>
		<content:encoded><![CDATA[<p>Works really good, except on File Uploads.</p>
<p>The validator always returns fileUploadErrorIniSize error.</p>
<p>Maybe anyone experienced the same or has a solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaded</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6713</link>
		<dc:creator>shaded</dc:creator>
		<pubDate>Tue, 20 Apr 2010 16:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6713</guid>
		<description>I havent watched the full video yet, just got to the point where you&#039;re asking about the interest in more jquery vids and figure i had to pause and post. 

+1 for more jquery vids. :)?</description>
		<content:encoded><![CDATA[<p>I havent watched the full video yet, just got to the point where you&#8217;re asking about the interest in more jquery vids and figure i had to pause and post. </p>
<p>+1 for more jquery vids. <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reu</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6658</link>
		<dc:creator>Reu</dc:creator>
		<pubDate>Sat, 17 Apr 2010 14:16:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6658</guid>
		<description>Cool screencast. But just letting you know, you could use the jquery serialize function to easy serialize your form (http://api.jquery.com/serialize).</description>
		<content:encoded><![CDATA[<p>Cool screencast. But just letting you know, you could use the jquery serialize function to easy serialize your form (<a href="http://api.jquery.com/serialize" rel="nofollow">http://api.jquery.com/serialize</a>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHPGangsta</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6654</link>
		<dc:creator>PHPGangsta</dc:creator>
		<pubDate>Sat, 17 Apr 2010 10:49:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6654</guid>
		<description>We are using mootools at work, but your screencast has some nice ideas, thanks for that! All your screencasts rock!</description>
		<content:encoded><![CDATA[<p>We are using mootools at work, but your screencast has some nice ideas, thanks for that! All your screencasts rock!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework News &#187; Blog Archive &#187; Screen Cast: Formvalidierung mit jQuery</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6604</link>
		<dc:creator>Zend Framework News &#187; Blog Archive &#187; Screen Cast: Formvalidierung mit jQuery</dc:creator>
		<pubDate>Wed, 14 Apr 2010 09:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6604</guid>
		<description>[...] http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/" rel="nofollow">http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6602</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 14 Apr 2010 08:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6602</guid>
		<description>Modifying headers by 
header(&quot;Content-type: application/json&quot;); 
doesn&#039;t work for me, but Zend has this fancy method in request object:
$this-&gt;_response-&gt;setHeader(&#039;Content-Type&#039;, &#039;application/json&#039;);
(from Action controller) which works perfectly well. Also you can get request object from front controller:
Zend_Controller_Front::getInstance()-&gt;getRequest();
(from top of my head).</description>
		<content:encoded><![CDATA[<p>Modifying headers by<br />
header(&#8220;Content-type: application/json&#8221;);<br />
doesn&#8217;t work for me, but Zend has this fancy method in request object:<br />
$this-&gt;_response-&gt;setHeader(&#8216;Content-Type&#8217;, &#8216;application/json&#8217;);<br />
(from Action controller) which works perfectly well. Also you can get request object from front controller:<br />
Zend_Controller_Front::getInstance()-&gt;getRequest();<br />
(from top of my head).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TeeJay</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6599</link>
		<dc:creator>TeeJay</dc:creator>
		<pubDate>Tue, 13 Apr 2010 23:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6599</guid>
		<description>I dont know why the publisher of this video uses echos in the controller. Apart from using the json helper u can use the responseObject to set headers and the response body. Its a much more clean then echoing in the controller level. Another option is using the context switch for the validateAction.</description>
		<content:encoded><![CDATA[<p>I dont know why the publisher of this video uses echos in the controller. Apart from using the json helper u can use the responseObject to set headers and the response body. Its a much more clean then echoing in the controller level. Another option is using the context switch for the validateAction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6597</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Tue, 13 Apr 2010 18:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6597</guid>
		<description>Hi Jurian,

r.e. #1: something in ZendX is not inside the Zend libraries and so I&#039;m reluctant to produce videos about it quite yet, although I know there&#039;s a huge demand out there for jQuery / Zend interaction and the ZendX_JQuery component is great.

#2 people can still use this app if they don&#039;t have js (the javascript code would just be ignored). Sending the post data to indexAction is a moot point that speaks more to where we put our JSON interface in our application. By making a Zend_Form object, we are explicitly decoupling the form object from the action in question. By moving the validation code back into indexAction, we&#039;re re-introducing this coupling. I would rather treat the object separate from the controller, because it is separate from the controller. If you&#039;re writing a 1-to-1 relationship between forms and controller actions, then I would agree with combining the two.</description>
		<content:encoded><![CDATA[<p>Hi Jurian,</p>
<p>r.e. #1: something in ZendX is not inside the Zend libraries and so I&#8217;m reluctant to produce videos about it quite yet, although I know there&#8217;s a huge demand out there for jQuery / Zend interaction and the ZendX_JQuery component is great.</p>
<p>#2 people can still use this app if they don&#8217;t have js (the javascript code would just be ignored). Sending the post data to indexAction is a moot point that speaks more to where we put our JSON interface in our application. By making a Zend_Form object, we are explicitly decoupling the form object from the action in question. By moving the validation code back into indexAction, we&#8217;re re-introducing this coupling. I would rather treat the object separate from the controller, because it is separate from the controller. If you&#8217;re writing a 1-to-1 relationship between forms and controller actions, then I would agree with combining the two.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6596</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Tue, 13 Apr 2010 18:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6596</guid>
		<description>Hi Jeremy,

good point!</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,</p>
<p>good point!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Stillwell</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6593</link>
		<dc:creator>Shane Stillwell</dc:creator>
		<pubDate>Tue, 13 Apr 2010 17:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6593</guid>
		<description>Jon,

Thanks for the video. In jQuery you can serialize a form like

var formdata = $(&quot;#formid&quot;).serialize();</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>Thanks for the video. In jQuery you can serialize a form like</p>
<p>var formdata = $(&#8220;#formid&#8221;).serialize();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitri</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6591</link>
		<dc:creator>Dmitri</dc:creator>
		<pubDate>Tue, 13 Apr 2010 16:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6591</guid>
		<description>Good stuff! Easy to understand.</description>
		<content:encoded><![CDATA[<p>Good stuff! Easy to understand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6590</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Tue, 13 Apr 2010 16:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6590</guid>
		<description>Great tutorial!

Thanks!</description>
		<content:encoded><![CDATA[<p>Great tutorial!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio Medina</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6576</link>
		<dc:creator>Sergio Medina</dc:creator>
		<pubDate>Mon, 12 Apr 2010 17:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6576</guid>
		<description>Hi. Great tutorials!

Just one suggestion when working with ajax, why not taking advantage of the ContexSwitch action helper?</description>
		<content:encoded><![CDATA[<p>Hi. Great tutorials!</p>
<p>Just one suggestion when working with ajax, why not taking advantage of the ContexSwitch action helper?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6572</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 12 Apr 2010 16:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6572</guid>
		<description>In your doValidation function you could take advantage of jQuery&#039;s serialize function to automatically serialize your form elements:

http://api.jquery.com/serialize/</description>
		<content:encoded><![CDATA[<p>In your doValidation function you could take advantage of jQuery&#8217;s serialize function to automatically serialize your form elements:</p>
<p><a href="http://api.jquery.com/serialize/" rel="nofollow">http://api.jquery.com/serialize/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jurian Sluiman</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6566</link>
		<dc:creator>Jurian Sluiman</dc:creator>
		<pubDate>Mon, 12 Apr 2010 09:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6566</guid>
		<description>Good idea to use jQuery for client side validation! It&#039;s imho a slightly better approach than Jani Hartikainen posted (http://codeutopia.net/blog/2008/04/04/client-side-validation-with-zend_form).

But I have several concerns about the php implementation:

1) Why don&#039;t you use the ZendX_JQuery component? It has a view helper which enables jQuery with a specified version from Google&#039;s CDN completely automatically. You&#039;re able to do such:

jQuery()-&gt;enable()-&gt;addOnload(&#039;javascript here&#039;)?&gt;
or
jQuery-&gt;setVersion(&#039;1.4&#039;)-&gt;enable() ?&gt;
etc

When you use addOnload() the script is encapsulated inside a  $(document).ready(function(){
});

It performs much better than waiting your javascript to complete.

2) JSON responses should only respond to XHR so people with no js can still use your application. Therefore I should suggest using the context switch action helper which will be initialized when you send a XmlHttpRequest with a format parameter requesting a JSON response.

Now you have a special action inside the controller responding only for this validation. I&#039;d suggest you send the POST data to the indexAction. Inside the action you can always distinguish the JSON validation request and use a seperate method to handle the request. Eg a _valdiateJSON($data){} which is called by the indexAction().</description>
		<content:encoded><![CDATA[<p>Good idea to use jQuery for client side validation! It&#8217;s imho a slightly better approach than Jani Hartikainen posted (<a href="http://codeutopia.net/blog/2008/04/04/client-side-validation-with-zend_form" rel="nofollow">http://codeutopia.net/blog/2008/04/04/client-side-validation-with-zend_form</a>).</p>
<p>But I have several concerns about the php implementation:</p>
<p>1) Why don&#8217;t you use the ZendX_JQuery component? It has a view helper which enables jQuery with a specified version from Google&#8217;s CDN completely automatically. You&#8217;re able to do such:</p>
<p>jQuery()-&gt;enable()-&gt;addOnload(&#8216;javascript here&#8217;)?&gt;<br />
or<br />
jQuery-&gt;setVersion(&#8217;1.4&#8242;)-&gt;enable() ?&gt;<br />
etc</p>
<p>When you use addOnload() the script is encapsulated inside a  $(document).ready(function(){<br />
});</p>
<p>It performs much better than waiting your javascript to complete.</p>
<p>2) JSON responses should only respond to XHR so people with no js can still use your application. Therefore I should suggest using the context switch action helper which will be initialized when you send a XmlHttpRequest with a format parameter requesting a JSON response.</p>
<p>Now you have a special action inside the controller responding only for this validation. I&#8217;d suggest you send the POST data to the indexAction. Inside the action you can always distinguish the JSON validation request and use a seperate method to handle the request. Eg a _valdiateJSON($data){} which is called by the indexAction().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aju</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6546</link>
		<dc:creator>Aju</dc:creator>
		<pubDate>Sun, 11 Apr 2010 15:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6546</guid>
		<description>Now the problem is that there is really many of helpers so you can easily get lost :)</description>
		<content:encoded><![CDATA[<p>Now the problem is that there is really many of helpers so you can easily get lost <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6545</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sun, 11 Apr 2010 14:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6545</guid>
		<description>Hey Aju &amp; Marcelo,

thanks for mentioning this. You&#039;re both quite right that this would cut down the number of lines of code! It&#039;s a bad habit from when the view helper didn&#039;t exist.</description>
		<content:encoded><![CDATA[<p>Hey Aju &amp; Marcelo,</p>
<p>thanks for mentioning this. You&#8217;re both quite right that this would cut down the number of lines of code! It&#8217;s a bad habit from when the view helper didn&#8217;t exist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6544</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sun, 11 Apr 2010 14:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6544</guid>
		<description>I&#039;m running MAMP on a macbook pro, C2D 2.8Ghz with 4GB of RAM...</description>
		<content:encoded><![CDATA[<p>I&#8217;m running MAMP on a macbook pro, C2D 2.8Ghz with 4GB of RAM&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aju</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6543</link>
		<dc:creator>Aju</dc:creator>
		<pubDate>Sun, 11 Apr 2010 13:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6543</guid>
		<description>Thanks for video!


Just one question why didn&#039;t you use for example: 

$this-&gt;_helper-&gt;json-&gt;sendJson($data);

to send JSON and disable layout?</description>
		<content:encoded><![CDATA[<p>Thanks for video!</p>
<p>Just one question why didn&#8217;t you use for example: </p>
<p>$this-&gt;_helper-&gt;json-&gt;sendJson($data);</p>
<p>to send JSON and disable layout?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcelo</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6530</link>
		<dc:creator>Marcelo</dc:creator>
		<pubDate>Sat, 10 Apr 2010 17:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6530</guid>
		<description>Awesome, as aways. Thank you Jon!

One simple optimization suggested:

- $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
- header(&#039;Content-type: application/json&#039;);
- echo Zend_Json::encode($json);

// disable view renderer, modifies header and Json it!
+ $this-&gt;_helper-&gt;json($json);

By the way, I too would like to hear something about Zend_Dojo_Form.

Cheers!</description>
		<content:encoded><![CDATA[<p>Awesome, as aways. Thank you Jon!</p>
<p>One simple optimization suggested:</p>
<p>- $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();<br />
- header(&#8216;Content-type: application/json&#8217;);<br />
- echo Zend_Json::encode($json);</p>
<p>// disable view renderer, modifies header and Json it!<br />
+ $this-&gt;_helper-&gt;json($json);</p>
<p>By the way, I too would like to hear something about Zend_Dojo_Form.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomáš Fejfar</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6527</link>
		<dc:creator>Tomáš Fejfar</dc:creator>
		<pubDate>Sat, 10 Apr 2010 12:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6527</guid>
		<description>Thanks for awesome tutorial. It&#039;s really useful. May I just ask what setup do you use for development (xAMP, CPU, RAM, etc)? The response seems really fast, but I can&#039;t get below like 500ms without caching on my C2D6400/4G/xampp :(</description>
		<content:encoded><![CDATA[<p>Thanks for awesome tutorial. It&#8217;s really useful. May I just ask what setup do you use for development (xAMP, CPU, RAM, etc)? The response seems really fast, but I can&#8217;t get below like 500ms without caching on my C2D6400/4G/xampp <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6526</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 10 Apr 2010 11:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6526</guid>
		<description>Cool, I didn&#039;t know that this is so &quot;simple&quot;.
You helped my relly much, thank you!</description>
		<content:encoded><![CDATA[<p>Cool, I didn&#8217;t know that this is so &#8220;simple&#8221;.<br />
You helped my relly much, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6522</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Sat, 10 Apr 2010 08:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6522</guid>
		<description>+1 for a jQuery screencast although I would really like to see a Zend specific Dojo screencast.</description>
		<content:encoded><![CDATA[<p>+1 for a jQuery screencast although I would really like to see a Zend specific Dojo screencast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6520</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Sat, 10 Apr 2010 05:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6520</guid>
		<description>Thanks.

John, Many developers don&#039;t use plain html forms any more, instead use an Ajax framework like ExtJS that generates fields with javascript. 

In that case, do you recommend using just Zend_Filter_Input ?
  
Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>John, Many developers don&#8217;t use plain html forms any more, instead use an Ajax framework like ExtJS that generates fields with javascript. </p>
<p>In that case, do you recommend using just Zend_Filter_Input ?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flo</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6519</link>
		<dc:creator>Flo</dc:creator>
		<pubDate>Sat, 10 Apr 2010 02:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6519</guid>
		<description>Thanks a lot !!</description>
		<content:encoded><![CDATA[<p>Thanks a lot !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivo Trompert</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6515</link>
		<dc:creator>Ivo Trompert</dc:creator>
		<pubDate>Sat, 10 Apr 2010 00:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6515</guid>
		<description>Thank you for this great tutorial. Finally something that is easy to understand.</description>
		<content:encoded><![CDATA[<p>Thank you for this great tutorial. Finally something that is easy to understand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BEREGU</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6514</link>
		<dc:creator>BEREGU</dc:creator>
		<pubDate>Sat, 10 Apr 2010 00:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6514</guid>
		<description>Wow.... Great. Exactly what I was tracking...
Thanks Jon!</description>
		<content:encoded><![CDATA[<p>Wow&#8230;. Great. Exactly what I was tracking&#8230;<br />
Thanks Jon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rvdavid</title>
		<link>http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/comment-page-1/#comment-6513</link>
		<dc:creator>rvdavid</dc:creator>
		<pubDate>Sat, 10 Apr 2010 00:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=329#comment-6513</guid>
		<description>Beautiful :) 
Thank you for the vid.</description>
		<content:encoded><![CDATA[<p>Beautiful <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thank you for the vid.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

