<?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: CakePHP: Update a select box using ajax</title>
	<atom:link href="http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/</link>
	<description>Devmoz's blog</description>
	<pubDate>Fri, 12 Mar 2010 02:39:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: avnish negi</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-5319</link>
		<dc:creator>avnish negi</dc:creator>
		<pubDate>Tue, 01 Dec 2009 09:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-5319</guid>
		<description>Hi all,  if u have still IE issue .There is a solution for u.
Don't use select  name and id same
ex.. 
select('city',array($cities),null,array('id'=&gt;'city_id','empty'=&gt;'Select One',"class"=&gt;"search_dropfield"),array('empty'=&gt;'Select One'),false);?&gt;	
 Here i am using name=city
                 id=city_id</description>
		<content:encoded><![CDATA[<p>Hi all,  if u have still IE issue .There is a solution for u.<br />
Don&#8217;t use select  name and id same<br />
ex..<br />
select(&#8217;city&#8217;,array($cities),null,array(&#8217;id&#8217;=&gt;&#8217;city_id&#8217;,'empty&#8217;=&gt;&#8217;Select One&#8217;,&#8221;class&#8221;=&gt;&#8221;search_dropfield&#8221;),array(&#8217;empty&#8217;=&gt;&#8217;Select One&#8217;),false);?&gt;<br />
 Here i am using name=city<br />
                 id=city_id</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-5155</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Fri, 11 Sep 2009 22:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-5155</guid>
		<description>Here's another tutorial to accomplish the same thing with Cakephp 1.2

http://j4vk.com/wordpress/2008/08/07/cakephp-dynamic-select-boxes-ajax/</description>
		<content:encoded><![CDATA[<p>Here&#8217;s another tutorial to accomplish the same thing with Cakephp 1.2</p>
<p><a href="http://j4vk.com/wordpress/2008/08/07/cakephp-dynamic-select-boxes-ajax/" rel="nofollow">http://j4vk.com/wordpress/2008/08/07/cakephp-dynamic-select-boxes-ajax/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbeer</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-4927</link>
		<dc:creator>sbeer</dc:creator>
		<pubDate>Fri, 24 Apr 2009 22:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-4927</guid>
		<description>when I use $ajax-&gt;observeField it works to upload the the articles-div, but it stays empty. the function update_select is not even called. What am I doing wrong?!</description>
		<content:encoded><![CDATA[<p>when I use $ajax-&gt;observeField it works to upload the the articles-div, but it stays empty. the function update_select is not even called. What am I doing wrong?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-4914</link>
		<dc:creator>George</dc:creator>
		<pubDate>Fri, 03 Apr 2009 02:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-4914</guid>
		<description>Appreciate the info guys, thanks</description>
		<content:encoded><![CDATA[<p>Appreciate the info guys, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AndraÅ¾</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-4684</link>
		<dc:creator>AndraÅ¾</dc:creator>
		<pubDate>Thu, 26 Feb 2009 11:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-4684</guid>
		<description>You write, that we can return a script and execute it.
"This was just one way of doing it, we could return JSON, XML or a script thatâ€™ll get executed"

Do you have any example, how can I return a script and execute it?</description>
		<content:encoded><![CDATA[<p>You write, that we can return a script and execute it.<br />
&#8220;This was just one way of doing it, we could return JSON, XML or a script thatâ€™ll get executed&#8221;</p>
<p>Do you have any example, how can I return a script and execute it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sal</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-4654</link>
		<dc:creator>sal</dc:creator>
		<pubDate>Thu, 19 Feb 2009 07:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-4654</guid>
		<description>anyone else having issues with it just populating the first select in cake 1.2 ? great tutorial, just cant seem to get it to generate the second drop down. any help is appreciated</description>
		<content:encoded><![CDATA[<p>anyone else having issues with it just populating the first select in cake 1.2 ? great tutorial, just cant seem to get it to generate the second drop down. any help is appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dieter@be</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-4570</link>
		<dc:creator>Dieter@be</dc:creator>
		<pubDate>Fri, 23 Jan 2009 08:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-4570</guid>
		<description>Thanks, still a useful tutorial after so much time :-)</description>
		<content:encoded><![CDATA[<p>Thanks, still a useful tutorial after so much time <img src='http://www.devmoz.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: baba</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-4465</link>
		<dc:creator>baba</dc:creator>
		<pubDate>Sun, 21 Dec 2008 04:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-4465</guid>
		<description>very nice tutorial, i want to ask how about we don't update to selectbox but we put return into inputbox,
the return value automatic one result...,
thanks for you kind</description>
		<content:encoded><![CDATA[<p>very nice tutorial, i want to ask how about we don&#8217;t update to selectbox but we put return into inputbox,<br />
the return value automatic one result&#8230;,<br />
thanks for you kind</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobman</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-4320</link>
		<dc:creator>Tobman</dc:creator>
		<pubDate>Sat, 29 Nov 2008 15:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-4320</guid>
		<description>generateList() is deprecated in cake 1.2 that is correct, use

$this-&gt;Article-&gt;Category-&gt;find('list');

instead! You also have to change the line in update_select:

$this-&gt;Article-&gt;generateList(array(â€˜category_idâ€™=&gt;$cat_id));

to

$this-&gt;Article-&gt;find('list', array('conditions' =&gt; array('Article.category_id' =&gt; $cat_id)));</description>
		<content:encoded><![CDATA[<p>generateList() is deprecated in cake 1.2 that is correct, use</p>
<p>$this-&gt;Article-&gt;Category-&gt;find(&#8217;list&#8217;);</p>
<p>instead! You also have to change the line in update_select:</p>
<p>$this-&gt;Article-&gt;generateList(array(â€˜category_idâ€™=&gt;$cat_id));</p>
<p>to</p>
<p>$this-&gt;Article-&gt;find(&#8217;list&#8217;, array(&#8217;conditions&#8217; =&gt; array(&#8217;Article.category_id&#8217; =&gt; $cat_id)));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cassio Seffrin</title>
		<link>http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/comment-page-1/#comment-4295</link>
		<dc:creator>Cassio Seffrin</dc:creator>
		<pubDate>Wed, 26 Nov 2008 13:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/#comment-4295</guid>
		<description>After insert data, when I edit the information of articles I don't know how populate the articles combo without change the category combo.

In insert form the articles combo is updated when the category combo is changed. $ajax-&gt;observeField('categories',$options);

But in edit form is necessary do that when the form is loaded.

Somebody know how I can do that?</description>
		<content:encoded><![CDATA[<p>After insert data, when I edit the information of articles I don&#8217;t know how populate the articles combo without change the category combo.</p>
<p>In insert form the articles combo is updated when the category combo is changed. $ajax-&gt;observeField(&#8217;categories&#8217;,$options);</p>
<p>But in edit form is necessary do that when the form is loaded.</p>
<p>Somebody know how I can do that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
