This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...
Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...
TLDR: A function is hard to use when it sometimes returns a promise and sometimes throws an exception. When writing...
For my Gem Session project Holly I ran the Ironman of drag'n'drop implementations: Dragging in nested lists
Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle
If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
Using the JS fullscreen API is painful because all browers use different methods and events and you need to use...
Masonry is a famous library to dynamically arrange a grid of items that have different aspect ratio, like horizontal and...
A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...
...and Prototype to extract params from a url. You can use this library (not tested): jquery-deparam Use Unpoly and the following code snippet
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...
The attached Coffeescript helper will let you create mouse events: $element = $('div') Trigger.mouseover($element) Trigger.mouseenter($element) Trigger.mousedown($element) Trigger.mouseup($element...
If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...
select2 is a great jQuery library to make (large) fields more usable. For Bootstrap 3 there is select2-bootstrap-theme...
tl;dr: Use event.currentTarget unless you are absolutely certain that you need event.target. Since it hasn't been written down...
The mobile-friendly, responsive, and lightweight jQuery date & time input picker. Does not depend on jQuery UI, but currently does...
Added information about what jQuery considers "visible" Added a solution for Prototype Added a patch for Prototype that replaces the...
In your Cucumber features you can't really click hidden elements when using Selenium (it does work for a plain...
When building a form with a file select field, you may want to offer your users a live preview before...
The most common use case for Ruby's #collect is to call a method on each list element and collect...