<?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: Dynamically Adding Elements to Zend_Form</title>
	<atom:link href="http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/</link>
	<description>{web developer, entrepreneur }</description>
	<lastBuildDate>Mon, 30 Aug 2010 18:13:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nicklas</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-600</link>
		<dc:creator>Nicklas</dc:creator>
		<pubDate>Mon, 30 Aug 2010 18:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-600</guid>
		<description>Is there any easy way to start out with more then one field-set as default? I mean I want it to start on 10 fields and then be able to add more.</description>
		<content:encoded><![CDATA[<p>Is there any easy way to start out with more then one field-set as default? I mean I want it to start on 10 fields and then be able to add more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laura</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-599</link>
		<dc:creator>Laura</dc:creator>
		<pubDate>Thu, 26 Aug 2010 09:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-599</guid>
		<description>Found out what the problem was. I forgot the ! in if(!$this-&gt;_request-&gt;isPost()) {
    $this-&gt;view-&gt;form = $form;
    return;}
Thank you for the post.</description>
		<content:encoded><![CDATA[<p>Found out what the problem was. I forgot the ! in if(!$this-&gt;_request-&gt;isPost()) {<br />
    $this-&gt;view-&gt;form = $form;<br />
    return;}<br />
Thank you for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laura</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-598</link>
		<dc:creator>Laura</dc:creator>
		<pubDate>Thu, 26 Aug 2010 08:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-598</guid>
		<description>Hi, I&#039;m new to Zend and i&#039;m having a problem with this project. When i click submit the dynamic form elements added disappear. Can anyone tell me what I&#039;m doing wrong? 

Thank you</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m new to Zend and i&#8217;m having a problem with this project. When i click submit the dynamic form elements added disappear. Can anyone tell me what I&#8217;m doing wrong? </p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iggy</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-560</link>
		<dc:creator>Iggy</dc:creator>
		<pubDate>Sat, 26 Jun 2010 00:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-560</guid>
		<description>To remove the element try adding 
$element-&gt;setAttrib(&quot;id&quot;,&quot;newElement$id-&quot;);

after your  $element = new Zend_Form_Element_Text(&quot;newName$id&quot;);

this will make sure that the id of the element is found by your javascript.</description>
		<content:encoded><![CDATA[<p>To remove the element try adding<br />
$element-&gt;setAttrib(&#8220;id&#8221;,&#8221;newElement$id-&#8221;);</p>
<p>after your  $element = new Zend_Form_Element_Text(&#8220;newName$id&#8221;);</p>
<p>this will make sure that the id of the element is found by your javascript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blusky</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-509</link>
		<dc:creator>Blusky</dc:creator>
		<pubDate>Tue, 01 Jun 2010 18:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-509</guid>
		<description>Hi!
Thank you for this!
But i don&#039;t know a lot about jQuery, and i would like to know if it&#039;s possible to have a zip with the whole code of this tutorial. It will be very helpfull !!!
Thanks a lot !</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Thank you for this!<br />
But i don&#8217;t know a lot about jQuery, and i would like to know if it&#8217;s possible to have a zip with the whole code of this tutorial. It will be very helpfull !!!<br />
Thanks a lot !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-444</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Sun, 18 Apr 2010 02:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-444</guid>
		<description>&lt;p&gt;Hey Oliver,&lt;/p&gt;
&lt;p&gt;I&#039;m working on re-writing the example for ZF 1.10.3 and jQuery 1.4.2. &#160;So far, everything has worked just fine. &#160;What browser &amp; OS are you working with? &#160;I&#039;ve tested it on Firefox 3.5.9 and Google Chrome 5.0.342.9 beta on Ubuntu 9.10.&lt;/p&gt;
&lt;p&gt;If you haven&#039;t gotten it working yet, let me know and I&#039;ll zip up the new source code for you.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Hey Oliver,</p>
<p>I&#8217;m working on re-writing the example for ZF 1.10.3 and jQuery 1.4.2. &nbsp;So far, everything has worked just fine. &nbsp;What browser &amp; OS are you working with? &nbsp;I&#8217;ve tested it on Firefox 3.5.9 and Google Chrome 5.0.342.9 beta on Ubuntu 9.10.</p>
<p>If you haven&#8217;t gotten it working yet, let me know and I&#8217;ll zip up the new source code for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-438</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Fri, 16 Apr 2010 22:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-438</guid>
		<description>What is strange about the remove not working for the added elements is, that the id is reduced correctly. It seems that for some strange reason the id of the elements are not found by the remove function. If I add a manual div/id/whatever and add a remove on that in the same function it works as expected. But not with the field elements. That&#039;s something I don&#039;t get at the moment :-)</description>
		<content:encoded><![CDATA[<p>What is strange about the remove not working for the added elements is, that the id is reduced correctly. It seems that for some strange reason the id of the elements are not found by the remove function. If I add a manual div/id/whatever and add a remove on that in the same function it works as expected. But not with the field elements. That&#8217;s something I don&#8217;t get at the moment <img src='http://www.jeremykendall.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-437</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Fri, 16 Apr 2010 16:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-437</guid>
		<description>@Oliver Gotcha.  I need to update the article to reflect the latest versions of jQuery and ZF.  If you beat me to the fix, let me know, otherwise I&#039;ll post the updated version here soon.  Er, soon-ish.</description>
		<content:encoded><![CDATA[<p>@Oliver Gotcha.  I need to update the article to reflect the latest versions of jQuery and ZF.  If you beat me to the fix, let me know, otherwise I&#8217;ll post the updated version here soon.  Er, soon-ish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-436</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Fri, 16 Apr 2010 16:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-436</guid>
		<description>Hey Jeremy,

thanks for your feedback. I&#039;m implementing this on jQuery 1.4.2 and ZF 1.10.3. I was able to adapt your example to my needs as far as it comes to adding elements to the form. This is working just fine now. Removing though doesn&#039;t work properly at the moment. The id is correctly reduced but the form element that shall be removed is still displayed. Didn&#039;t found the reason for that yet...</description>
		<content:encoded><![CDATA[<p>Hey Jeremy,</p>
<p>thanks for your feedback. I&#8217;m implementing this on jQuery 1.4.2 and ZF 1.10.3. I was able to adapt your example to my needs as far as it comes to adding elements to the form. This is working just fine now. Removing though doesn&#8217;t work properly at the moment. The id is correctly reduced but the form element that shall be removed is still displayed. Didn&#8217;t found the reason for that yet&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/comment-page-1/#comment-435</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Fri, 16 Apr 2010 15:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=154#comment-435</guid>
		<description>@Maria If I remember correctly, I was never able to get this working for groups.  Since groups weren&#039;t part of my original use-case, I never solved that part of the puzzle.  Sorry!

@Christina I hope you&#039;re able to get that one resolved.  Sounds like a pain.  Not having worked with Zend + Dojo, I don&#039;t have any suggestions off the top of my head :(

@Ken I&#039;m not sure what&#039;s going on with your JavaScript issue.  Code in the page and code in an external file should work in the exact same way.  Make sure that you&#039;re actually including the .js in your page.  I use the FF Web Developer tool bar for that (Information -&gt; View JavaScript).  I can&#039;t tell you how many times that&#039;s saved my bacon.

@Oliver Make sure you&#039;re using the same version of jQuery as in the example (at the time of writing that was jQuery 1.3.2).  If you&#039;ve copied and pasted code, make sure that it actually matches the original code (how many times have I made that mistake?).  Let me know if you&#039;re still having problems.  Maybe I can help out.</description>
		<content:encoded><![CDATA[<p>@Maria If I remember correctly, I was never able to get this working for groups.  Since groups weren&#8217;t part of my original use-case, I never solved that part of the puzzle.  Sorry!</p>
<p>@Christina I hope you&#8217;re able to get that one resolved.  Sounds like a pain.  Not having worked with Zend + Dojo, I don&#8217;t have any suggestions off the top of my head <img src='http://www.jeremykendall.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>@Ken I&#8217;m not sure what&#8217;s going on with your JavaScript issue.  Code in the page and code in an external file should work in the exact same way.  Make sure that you&#8217;re actually including the .js in your page.  I use the FF Web Developer tool bar for that (Information -> View JavaScript).  I can&#8217;t tell you how many times that&#8217;s saved my bacon.</p>
<p>@Oliver Make sure you&#8217;re using the same version of jQuery as in the example (at the time of writing that was jQuery 1.3.2).  If you&#8217;ve copied and pasted code, make sure that it actually matches the original code (how many times have I made that mistake?).  Let me know if you&#8217;re still having problems.  Maybe I can help out.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
