title: Creating interactive ajax javascript widgets in ruby / rails
body: <p>Looking to create interactive javascript widget using ruby-on-rails that can be placed on any website. </p>
  
  <p>I am able to create a basic widget. Its fairly straightforward (eg. using document.write)  This works fine for taking data from my server and putting it into the widget but its very static.</p>
  
  <p>But how do I create something more dynamic / interactive / ajaxy? </p>
  
  <p>I want to be able to do ajax calls using link_to_remote or something and be able to pull data from my server and update the widget as a user interacts with it.  </p>
  
  <p>Any ideas? If someone can point me in the right direction that would be great. </p>
  
  <p>Thanks!</p>