Looking to create interactive javascript widget using ruby-on-rails that can be placed on any website.
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.
But how do I create something more dynamic / interactive / ajaxy?
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.
Any ideas? If someone can point me in the right direction that would be great.
Thanks!