jquery - Creating interactive ajax javascript widgets in ruby / rails -


looking create interactive javascript widget using ruby-on-rails can placed on website.

i able create basic widget. straightforward (eg. using document.write) works fine taking data server , putting widget static.

but how create more dynamic / interactive / ajaxy?

i want able ajax calls using link_to_remote or , able pull data server , update widget user interacts it.

any ideas? if can point me in right direction great.

thanks!

since goal widget can used website, can't use "ajax" due same origin security policy.

what can create interactive widget uses jsonp pattern fetch data server.

using jsonp, widget can interact website though part of other webpage has nothing website.

there libraries using jsonp within javascript program. include:

and others. in case, can use rails backend.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -