<?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: Ajaxed Select Boxes in Rails</title>
	<atom:link href="http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/</link>
	<description>web design, programming, networking... but mostly just life</description>
	<lastBuildDate>Wed, 27 Jan 2010 15:51:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pratik</title>
		<link>http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/comment-page-1/#comment-453</link>
		<dc:creator>Pratik</dc:creator>
		<pubDate>Sat, 04 Jul 2009 20:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/#comment-453</guid>
		<description>This worked for me if i had only 1 select box to update. It does not work when i have to chain the select boxes. eg) When i select countries, states should get populated and when i select states, cities should get populated.

The AJAX request when selecting the state is not submitted to the server. This is probably because the response for the states does not replace the innerHTML of the page.


                
                    :
                
                
                     &#039;Select country&#039; %&gt;
                
            
            
                
                    :
                
                
                    
                        
                        
                    
                
            
            
                
                    :
                
                
                    
                        
                        
                    
                
            

 0.25,
            :update =&gt; &quot;states_list&quot;,
            :url =&gt; {:controller =&gt; :moduls, :action =&gt; :get_active_states},
            :with =&gt; &quot;&#039;country_id=&#039;+encodeURIComponent(value)&quot;) %&gt;
			
             0.25,
            :update =&gt; &quot;chapters_list&quot;,
            :url =&gt; {:controller =&gt; :moduls, :action =&gt; :get_active_chapters},
            :with =&gt; &quot;&#039;state_id=&#039;+encodeURIComponent(value)&quot;) %&gt;


Any Ideas?
Thanks,
Pratik</description>
		<content:encoded><![CDATA[<p>This worked for me if i had only 1 select box to update. It does not work when i have to chain the select boxes. eg) When i select countries, states should get populated and when i select states, cities should get populated.</p>
<p>The AJAX request when selecting the state is not submitted to the server. This is probably because the response for the states does not replace the innerHTML of the page.</p>
<p>                    :</p>
<p>                     &#8216;Select country&#8217; %></p>
<p>                    :</p>
<p>                    :</p>
<p> 0.25,<br />
            :update => &#8220;states_list&#8221;,<br />
            :url => {:controller => :moduls, :action => :get_active_states},<br />
            :with => &#8220;&#8216;country_id=&#8217;+encodeURIComponent(value)&#8221;) %></p>
<p>             0.25,<br />
            :update => &#8220;chapters_list&#8221;,<br />
            :url => {:controller => :moduls, :action => :get_active_chapters},<br />
            :with => &#8220;&#8217;state_id=&#8217;+encodeURIComponent(value)&#8221;) %></p>
<p>Any Ideas?<br />
Thanks,<br />
Pratik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/comment-page-1/#comment-448</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 26 Jun 2009 13:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/#comment-448</guid>
		<description>Well written - this helped me plenty!  I was trying to figure out how to do this.  Thanks.</description>
		<content:encoded><![CDATA[<p>Well written &#8211; this helped me plenty!  I was trying to figure out how to do this.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Katateochi</title>
		<link>http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/comment-page-1/#comment-420</link>
		<dc:creator>Katateochi</dc:creator>
		<pubDate>Fri, 12 Sep 2008 10:27:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/#comment-420</guid>
		<description>nice 1, I&#039;ve tried several techniques to implement dynamic select menus and this is the most sane and easiest to implement. Cheers dude.</description>
		<content:encoded><![CDATA[<p>nice 1, I&#8217;ve tried several techniques to implement dynamic select menus and this is the most sane and easiest to implement. Cheers dude.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/comment-page-1/#comment-374</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Thu, 29 May 2008 01:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/#comment-374</guid>
		<description>Yep, you&#039;re right on both counts... It&#039;s been a long time since I wrote this post, I should really update it!</description>
		<content:encoded><![CDATA[<p>Yep, you&#8217;re right on both counts&#8230; It&#8217;s been a long time since I wrote this post, I should really update it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/comment-page-1/#comment-373</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 28 May 2008 22:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/#comment-373</guid>
		<description>Thanks for this. Shouldn&#039;t fill_orders_box be get_orders? Also, if you leave out the :frequency on your observer it will use events instead of polling.</description>
		<content:encoded><![CDATA[<p>Thanks for this. Shouldn&#8217;t fill_orders_box be get_orders? Also, if you leave out the :frequency on your observer it will use events instead of polling.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rimu</title>
		<link>http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/comment-page-1/#comment-353</link>
		<dc:creator>Rimu</dc:creator>
		<pubDate>Thu, 15 Nov 2007 00:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamhegedus.com/2006/01/19/ajaxed-select-boxes-in-rails/#comment-353</guid>
		<description>Very nice.

One slight improvement that i made was to use the &#039;order&#039; partial in the view. Easier to maintain in future</description>
		<content:encoded><![CDATA[<p>Very nice.</p>
<p>One slight improvement that i made was to use the &#8216;order&#8217; partial in the view. Easier to maintain in future</p>
]]></content:encoded>
	</item>
</channel>
</rss>
