title: call phtml file in ajax
body: <p>I would like to call the catalog/layer/view.phtml file via ajax.</p>
  
  <p>There is absolutely no change in the code, everything is same but just want to call the view.phtml in ajax.</p>
  
  <pre><code>&lt;reference name="left"&gt;
  &lt;block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/&gt;
  &lt;/reference&gt;
  </code></pre>
  
  <p>I am going to use the following jquery code. </p>
  
  <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
      $(function() {
      $("#showsearch").load("/app/design/frontend/default/mytheme/template/catalog/layer/test.phtml", function(response, status, xhr) {    alert(response);   
  });
       });
  &lt;/script&gt;
  &lt;div id="showsearch"&gt;&lt;/div&gt; 
  </code></pre>
  
  <p>I was placing the jquery code in view.phtml but it returns 404 error.</p>
  
  <p>Am I doing something which is completely impossible or it can be done in some other way?</p>