UJS and native JavaScript

14 views
Skip to first unread message

Aishwarye Omer

unread,
Mar 6, 2016, 7:58:39 AM3/6/16
to Ruby on Rails: Talk
Hello,

Can anyone suggest any good source to understand more about the implementation of jquery-rails gem and the concept of UJS ?

Basically I want to know how it works and how UJS is implemented through Jquery

Thank You

Yours Sincerely

Aishwarye Omer

Walter Lee Davis

unread,
Mar 6, 2016, 6:10:08 PM3/6/16
to rubyonra...@googlegroups.com

> On Mar 6, 2016, at 7:58 AM, Aishwarye Omer <aishwa...@gmail.com> wrote:
>
> Hello,
>
> Can anyone suggest any good source to understand more about the implementation of jquery-rails gem and the concept of UJS ?
>
> Basically I want to know how it works and how UJS is implemented through Jquery

You may be interested in seeing how it is done in JavaScript first -- this project (which I contribute to) implements the UJS behaviors without using jQuery.

https://github.com/hauleth/vanilla-ujs

The jQuery implementation is similar, but it leverages the way the jQuery works internally, and uses a lot of jQuery helpers to do things that "vanilla" JS needs additional code to do.

Walter

>
> Thank You
>
> Yours Sincerely
>
> Aishwarye Omer
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ad8ead0c-a254-4a91-9728-a015f245429a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages