DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...

validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...

A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...

When projects run for many years, they require special regular maintenance to stay fresh. This kind of maintenance is usually...

When testing JavaScript functionality in Selenium (E2E), you may need to access a class or function inside of a evaluate...

Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...

To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...

JavaScript has no built-in functions to compare two objects or arrays for equality of their contained values.

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

Just like we use gems on the server, we use third party JavaScript libraries in the browser. These typically provide...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

Jasmine is a great tool to unit test your JavaScript components without writing an expensive end-to-end test for...

makandra Curriculum

Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...

Browsers come with a set of built-in elements like or . When we need a new component not covered by...

While working on a Rails application, your code base will grow a collection of different file types including: Ruby (business...

A common task in web applications is to add client-side JavaScript behavior to existing HTML elements.

...github.com/stefankroes/ancestry Some libraries also publish dedicated sites with their documentation, e.g.: http://unpoly.com https://lodash.com/ https://fontawesome.com/icons Web Platform (HTML, JavaScript, CSS) The best reference to look up...

When you need to add a event listener to hundreds of elements, this might slow down the browser. An alternative...

When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...

jsbin.com

If you try to listen to events on elements that are nested inside a , Firefox will stop event propagation once...