Insanely detailled guide about controlling copy & paste behavior using web technology in 2015. Note that you can now trigger a...
Developing complex regular expressions quickly blows my mind. Here are some online regex editors that help you by highlighting matching...
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...
All major browsers (IE8+, FF3.5+, Safari 4+, any Chrome) support sessionStorage, a JavaScript storage object that survives page reloads and...
Small (1.5 KB) Javascript library that lets you render tables, lists, etc. with hundreds of thousands of items.
When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
If you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...
Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...
This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...
The easiest way to detect touch-capable browsers is to check for the presence of touch events. It is no...
The Javascript in operator does what Hash#has_key? does in Ruby: Return whether an object has a property.
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
When testing code that uses pushState / replaceState, your browser will appear to navigate away from http://localhost:3000/specs (or wherever...
When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara...
Build dashboards using ascii/ansi art and javascript Awesome!
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...
Responsive Lightbox JavaScript that just works. You can use it for single images or a gallery. Animations are optional.
jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...
You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...
Databound provides Javascript a simple API to the Ruby on Rails CRUD. Tries to expose a full model CRUD as...
A set of javascript tools for working with files. It offers different kinds of things: A cross-browser JS API...