title: How to load partial using Ajax request?
body: <p>I want to load partial using Ajax request. I created drop-down list having Ajax request.</p>
  
  <pre><code>&lt;select name="search" id="search" onselect="new Ajax.Request('/calendar/find', {asynchronous:true, evalScripts:true, method:'get', parameters:'is_delivery_address=' + escape(value) }); return false;"&gt;
  
              &lt;option value="0"&gt;A&lt;/option&gt;
              &lt;option value="1"&gt;B&lt;/option&gt;
              &lt;option value="2"&gt;C Calendar&lt;/option&gt;
  
             &lt;/select&gt;
  </code></pre>
  
  <p>And In the controller:</p>
  
  <pre><code>def find
      render :update do |page|
  
        if ["0"].include?(params[:is_delivery_address])
  
          page.replace_html :appRightContent, :partial=&gt; 'calendar/trainer_view'
        else
          page.replace_html :appRightContent, :partial=&gt; 'calendar/venue_view'
        end
      end
  end 
  </code></pre>
  
  <p>When I run this code Ajax request is not working and I got following error.</p>
  
  <pre><code>Error: "throw $continue" is deprecated, use "return" instead
  </code></pre>
  
  <p>What should I do to work this request? Can anybody help me?</p>