<?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: Zend_Dojo_Form and Form Validation on the Client Side</title>
	<atom:link href="http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/</link>
	<description>PHP, (X)HTML, CSS and Everything Else</description>
	<lastBuildDate>Thu, 15 Dec 2011 11:54:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Santiago</title>
		<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/comment-page-1/#comment-259</link>
		<dc:creator>Santiago</dc:creator>
		<pubDate>Thu, 15 Dec 2011 11:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://peacocksuit.com/blog/?p=107#comment-259</guid>
		<description>Marcos!! Your code works fine and triggers all the errors already set in the form!! great!!</description>
		<content:encoded><![CDATA[<p>Marcos!! Your code works fine and triggers all the errors already set in the form!! great!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hoang Nguyen</title>
		<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/comment-page-1/#comment-257</link>
		<dc:creator>Hoang Nguyen</dc:creator>
		<pubDate>Wed, 12 Oct 2011 09:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://peacocksuit.com/blog/?p=107#comment-257</guid>
		<description>Great, this really helps me out</description>
		<content:encoded><![CDATA[<p>Great, this really helps me out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leon Myburgh</title>
		<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/comment-page-1/#comment-252</link>
		<dc:creator>Leon Myburgh</dc:creator>
		<pubDate>Wed, 31 Aug 2011 22:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://peacocksuit.com/blog/?p=107#comment-252</guid>
		<description>Thanks. This worked perfectly for what I had in mind. The Custom Zend Dojo Form Class method helped me add this to all my forms in a matter of minutes. Saved me from having to solve it myself.</description>
		<content:encoded><![CDATA[<p>Thanks. This worked perfectly for what I had in mind. The Custom Zend Dojo Form Class method helped me add this to all my forms in a matter of minutes. Saved me from having to solve it myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos</title>
		<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/comment-page-1/#comment-250</link>
		<dc:creator>Marcos</dc:creator>
		<pubDate>Wed, 15 Jun 2011 15:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://peacocksuit.com/blog/?p=107#comment-250</guid>
		<description>I do this on form:

$this-&gt;setAttribs(array(
&#039;method&#039;	=&gt; &#039;post&#039;,
&#039;name&#039;  	=&gt; &#039;form&#039;,
&#039;onSubmit&#039;	=&gt; &#039;return this.validate();&#039;
));</description>
		<content:encoded><![CDATA[<p>I do this on form:</p>
<p>$this-&gt;setAttribs(array(<br />
&#8216;method&#8217;	=&gt; &#8216;post&#8217;,<br />
&#8216;name&#8217;  	=&gt; &#8216;form&#8217;,<br />
&#8216;onSubmit&#8217;	=&gt; &#8216;return this.validate();&#8217;<br />
));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chrismacp</title>
		<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/comment-page-1/#comment-241</link>
		<dc:creator>chrismacp</dc:creator>
		<pubDate>Sat, 13 Feb 2010 02:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://peacocksuit.com/blog/?p=107#comment-241</guid>
		<description>Very useful, cheers :)</description>
		<content:encoded><![CDATA[<p>Very useful, cheers <img src='http://www.peacocksuit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Holmes</title>
		<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/comment-page-1/#comment-239</link>
		<dc:creator>Daniel Holmes</dc:creator>
		<pubDate>Sat, 06 Feb 2010 21:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://peacocksuit.com/blog/?p=107#comment-239</guid>
		<description>Thank you!  Thank you!

I&#039;m still pretty new (a month or so of dabbling) with Zend_Form and Dojo, but it looks like in 1.1.10 (at least) I needed to do a little blending between you and Matthew.  I love your idea of making it a view helper and showing me how, but registering everything at the top was loading it before Zend_Form had setup Dojo.

So, My ValidateDojoForm in the view helper looks more like so:

&lt;code&gt;
    public function ValidateDojoForm($formId)
    {
        $this-&gt;view-&gt;dojo()-&gt;javascriptCaptureStart(); ?&gt;
        function validateForm() {
            var form = dijit.byId(&quot;&quot;);
            if (!form.validate()) {
                return false;
            }
            return true;
        }
        view-&gt;dojo()-&gt;javascriptCaptureEnd();?&gt;
        view-&gt;dojo()-&gt;onLoadCaptureStart(); ?&gt;
        function() {
            dojo.connect(dijit.byId(&quot;&quot;), &quot;onSubmit&quot;, &quot;validateForm&quot;);
        }
        
        view-&gt;dojo()-&gt;onLoadCaptureEnd();
    }
&lt;/code&gt;

Just thought I would throw that on there for the next newbie who comes along.

Again, your post really helped me to get a little closer to &quot;getting it.&quot;  Thanks!</description>
		<content:encoded><![CDATA[<p>Thank you!  Thank you!</p>
<p>I&#8217;m still pretty new (a month or so of dabbling) with Zend_Form and Dojo, but it looks like in 1.1.10 (at least) I needed to do a little blending between you and Matthew.  I love your idea of making it a view helper and showing me how, but registering everything at the top was loading it before Zend_Form had setup Dojo.</p>
<p>So, My ValidateDojoForm in the view helper looks more like so:</p>
<p><code><br />
    public function ValidateDojoForm($formId)<br />
    {<br />
        $this-&gt;view-&gt;dojo()-&gt;javascriptCaptureStart(); ?&gt;<br />
        function validateForm() {<br />
            var form = dijit.byId("");<br />
            if (!form.validate()) {<br />
                return false;<br />
            }<br />
            return true;<br />
        }<br />
        view-&gt;dojo()-&gt;javascriptCaptureEnd();?&gt;<br />
        view-&gt;dojo()-&gt;onLoadCaptureStart(); ?&gt;<br />
        function() {<br />
            dojo.connect(dijit.byId(""), "onSubmit", "validateForm");<br />
        }</p>
<p>        view-&gt;dojo()-&gt;onLoadCaptureEnd();<br />
    }<br />
</code></p>
<p>Just thought I would throw that on there for the next newbie who comes along.</p>
<p>Again, your post really helped me to get a little closer to &#8220;getting it.&#8221;  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom G</title>
		<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/comment-page-1/#comment-236</link>
		<dc:creator>Tom G</dc:creator>
		<pubDate>Wed, 02 Dec 2009 15:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://peacocksuit.com/blog/?p=107#comment-236</guid>
		<description>Worked well, thanks! Shame it is needed.</description>
		<content:encoded><![CDATA[<p>Worked well, thanks! Shame it is needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael B</title>
		<link>http://www.peacocksuit.com/blog/2008/11/10/zend_dojo_form-and-form-validation-on-the-client-side/comment-page-1/#comment-219</link>
		<dc:creator>Michael B</dc:creator>
		<pubDate>Fri, 19 Dec 2008 06:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://peacocksuit.com/blog/?p=107#comment-219</guid>
		<description>You&#039;re a god send!!!</description>
		<content:encoded><![CDATA[<p>You&#8217;re a god send!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

