UJS and native JavaScript

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

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