Want to create an interactive javascript widget using ruby-on-rails, which can be placed on any website.
I can create a basic widget. Its pretty simple (like using document.write). This is great for receiving data from my server and entering it into the widget, but its most static.
But how do I create something more dynamic / interactive / ajaxy?
I want to be able to make ajax calls using link_to_remote or something else and be able to retrieve data from my server and update the widget when the user interacts with it.
Any ideas? If someone could point me in the right direction, that would be great.
Thanks!
source share