<?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: Related Drop-down Lists with Ruby on Rails and AJAX</title>
	<atom:link href="http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/</link>
	<description>Affiliate marketing, Internet marketing, web development, and small business ideas.</description>
	<lastBuildDate>Tue, 24 Jan 2012 15:37:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: eddie34</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-66150</link>
		<dc:creator>eddie34</dc:creator>
		<pubDate>Sun, 14 Dec 2008 09:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-66150</guid>
		<description>dear guys,
can u give a FULL and WORKING code.
or the best reference link 
I stuck on AJAX on RoR....:((</description>
		<content:encoded><![CDATA[<p>dear guys,<br />
can u give a FULL and WORKING code.<br />
or the best reference link<br />
I stuck on AJAX on RoR&#8230;.:((</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: werutzb</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-61231</link>
		<dc:creator>werutzb</dc:creator>
		<pubDate>Wed, 08 Oct 2008 03:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-61231</guid>
		<description>Hi!

I would like extend my SQL capabilities.
 I red that many SQL books and want to
read more about SQL for my work as mysql database manager.

 What can you recommend?

Thanks,
Werutz</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I would like extend my SQL capabilities.<br />
 I red that many SQL books and want to<br />
read more about SQL for my work as mysql database manager.</p>
<p> What can you recommend?</p>
<p>Thanks,<br />
Werutz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-58277</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Tue, 12 Aug 2008 21:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-58277</guid>
		<description>That is some ugleeeeee code.  The rails way is to avoid instance variables like the plague and instead reference ActiveRecord objects.</description>
		<content:encoded><![CDATA[<p>That is some ugleeeeee code.  The rails way is to avoid instance variables like the plague and instead reference ActiveRecord objects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fredx</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-56243</link>
		<dc:creator>fredx</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-56243</guid>
		<description>you can put your layout in a partial - keeping the view out of the controller.  

Using the inline form above, you&#039;d call:  

render( :text =&gt; @html ) 

Instead, you can call: 

render( :partial =&gt; &#039;partial_name&#039;, :layout =&gt; false ).  

The layout file lives in the same dir as the other views for this controller and must be named 

_partial_name.js.erb</description>
		<content:encoded><![CDATA[<p>you can put your layout in a partial &#8211; keeping the view out of the controller.  </p>
<p>Using the inline form above, you&#8217;d call:  </p>
<p>render( :text =&gt; @html ) </p>
<p>Instead, you can call: </p>
<p>render( :partial =&gt; &#8216;partial_name&#8217;, :layout =&gt; false ).  </p>
<p>The layout file lives in the same dir as the other views for this controller and must be named </p>
<p>_partial_name.js.erb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jetpilot</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-30191</link>
		<dc:creator>jetpilot</dc:creator>
		<pubDate>Mon, 10 Dec 2007 20:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-30191</guid>
		<description>my view:


 &quot;type_id&quot;, 
:with =&gt; &quot;id&quot;, :url =&gt; { :controller =&gt; &quot;event&quot;,
	:action =&gt; &quot;category_changed&quot; } %&gt;
</description>
		<content:encoded><![CDATA[<p>my view:</p>
<p> &#8220;type_id&#8221;,<br />
:with =&gt; &#8220;id&#8221;, :url =&gt; { :controller =&gt; &#8220;event&#8221;,<br />
	:action =&gt; &#8220;category_changed&#8221; } %&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jetpilot</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-30190</link>
		<dc:creator>jetpilot</dc:creator>
		<pubDate>Mon, 10 Dec 2007 20:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-30190</guid>
		<description>Hi, i&#039;m having problem trying to use observe_field: my view is like this


 &quot;type_id&quot;, 
	:with =&gt; &quot;id&quot;, :url =&gt; { :controller =&gt; &quot;event&quot;,
	:action =&gt; &quot;category_changed&quot; } %&gt;


in the controller i&#039;m updating @types(with query to DB),but is this enough,or i&#039;m missing something?type drop-down is always empty!I don&#039;t want any html inside my controller

Tnx.</description>
		<content:encoded><![CDATA[<p>Hi, i&#8217;m having problem trying to use observe_field: my view is like this</p>
<p> &#8220;type_id&#8221;,<br />
	:with =&gt; &#8220;id&#8221;, :url =&gt; { :controller =&gt; &#8220;event&#8221;,<br />
	:action =&gt; &#8220;category_changed&#8221; } %&gt;</p>
<p>in the controller i&#8217;m updating @types(with query to DB),but is this enough,or i&#8217;m missing something?type drop-down is always empty!I don&#8217;t want any html inside my controller</p>
<p>Tnx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lyn</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-24301</link>
		<dc:creator>Lyn</dc:creator>
		<pubDate>Tue, 09 Oct 2007 17:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-24301</guid>
		<description>Hi thanks for the advice on this article. There just one thing I get this error when using your code:

syntax error, unexpected tIDENTIFIER, expecting kDO or &#039;{&#039; or &#039;(&#039;
      
For this line:

@html = â€œâ€		

Other than the id and name changes theres no difference. Do you understand what the problem is? Many thanks. Lyn</description>
		<content:encoded><![CDATA[<p>Hi thanks for the advice on this article. There just one thing I get this error when using your code:</p>
<p>syntax error, unexpected tIDENTIFIER, expecting kDO or &#8216;{&#8216; or &#8216;(&#8216;</p>
<p>For this line:</p>
<p>@html = â€œâ€		</p>
<p>Other than the id and name changes theres no difference. Do you understand what the problem is? Many thanks. Lyn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaval</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-13291</link>
		<dc:creator>dhaval</dc:creator>
		<pubDate>Mon, 04 Jun 2007 12:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-13291</guid>
		<description>class AdminController  :city_name,
      :clear =&gt; [&#039;area_id&#039;]})
   end
 end
  def city_update
   return unless request.xhr?
   areas = State.find( :all, :conditions =&gt; [&quot;city_id=?&quot;, params[:ecosite_index]])
     flash[:notice]=&quot;#{params[:ecosite_index]}&quot;
   render :update do &#124;page&#124;
   page  :area_name} )
    end
  end
 
 def index
   @states=State.find_by_sql(&quot;select distinct name,state_id from states&quot;)
   
 end
end</description>
		<content:encoded><![CDATA[<p>class AdminController  :city_name,<br />
      :clear =&gt; ['area_id']})<br />
   end<br />
 end<br />
  def city_update<br />
   return unless request.xhr?<br />
   areas = State.find( :all, :conditions =&gt; ["city_id=?", params[:ecosite_index]])<br />
     flash[:notice]=&#8221;#{params[:ecosite_index]}&#8221;<br />
   render :update do |page|<br />
   page  :area_name} )<br />
    end<br />
  end</p>
<p> def index<br />
   @states=State.find_by_sql(&#8220;select distinct name,state_id from states&#8221;)</p>
<p> end<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anusha</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-10951</link>
		<dc:creator>anusha</dc:creator>
		<pubDate>Wed, 23 May 2007 16:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-10951</guid>
		<description>how do i see the recent comments in here???</description>
		<content:encoded><![CDATA[<p>how do i see the recent comments in here???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anusha</title>
		<link>http://www.roryhansen.ca/2005/06/21/related-drop-down-lists-with-ruby-and-ajax/comment-page-1/#comment-10932</link>
		<dc:creator>anusha</dc:creator>
		<pubDate>Wed, 23 May 2007 07:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/?p=9#comment-10932</guid>
		<description>can anyone get the code for dynamic drop down lists to put that on view page using rubyonrails...
like one drop down list consists list of states and other drop down list should contain list of states... and on selection of state from the first drop down list, the options in the second drop down list should change....
if any one  can code for this i vll b thankful....</description>
		<content:encoded><![CDATA[<p>can anyone get the code for dynamic drop down lists to put that on view page using rubyonrails&#8230;<br />
like one drop down list consists list of states and other drop down list should contain list of states&#8230; and on selection of state from the first drop down list, the options in the second drop down list should change&#8230;.<br />
if any one  can code for this i vll b thankful&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

