title: Rails 3 render partial without reloading images
body: <p>I have a view 'edit.html.erb' which renders a partial.</p>
  
  <pre><code>&lt;div id="exerciseslist"&gt;&lt;%= render 'exerciseslist' %&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Inside 'edit.js.erb', I have the following line which reloads the partial each time something is updated.</p>
  
  <pre><code>$('#exerciseslist').html('&lt;%= escape_javascript(render("exerciseslist")) %&gt;');
  </code></pre>
  
  <p>The partial is a table with a bunch of items including images for each one and some buttons. All that is changing in the partial is the button. If a submit is successful, the button toggles state indicating that it has been added. </p>
  
  <p>It's working fine, the problem is I don't like the way the images flash as the request happens, the items are also inside a scrollable section which looses it's state each time.</p>
  
  <p>Is there a good way to just load the state of the buttons without rendering the full partial? Or is there a simple way to stop the client requesting the images each time? </p>
  
  <p>I have done some reading and found pjax and backbone.js, are either of them a good way or is there a simpler rails way to do this?</p>
  
  <p>Thanks,
  Mike</p>