title: Rails / Jquery: When loading a page how to see a spinning wheel?
body: <p>Hi guys I'm new to jquery and I just setup some AJAX page loading in my rails app. So far I have a menu that loads different requests inside a container div using AJAX. However, when I click a link to load the new page inside the div, there is a delay where I'm still looking at the old page before the new one loads.</p>
  
  <p>I've seen elsewhere people use a spinning wheel animation to signify the loading, here's an example site that does it when you click the 'show notes' 'comments' or 'similar episodes' links <a href="http://railscasts.com/episodes/164-cron-in-ruby-revised" rel="nofollow">http://railscasts.com/episodes/164-cron-in-ruby-revised</a></p>
  
  <p>Thanks for any help!</p>
  
  <p>Edit: more details about more rails website. </p>
  
  <p>The root page has a container div that by default contains an array of objects.</p>
  
  
   
  
  
  <p>Then I have a menu that loads an ajax request and replaces the contents of div.stream with the result. </p>
  
  <p>This means that I can't have the div.stream contain a default 'Loading please wait message'</p>