The attached Coffeescript helper will let you create mouse events: $element = $('div') Trigger.mouseover($element) Trigger.mouseenter($element) Trigger.mousedown($element) Trigger.mouseup($element...
Some modern Javascript APIs return iterators instead of arrays. In plain Javascript you can loop through an iterator using
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
This will give the target site full access to your Javascript environment through window.opener, if the target is on the...
A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...
In JavaScript we often use Immediately Invoked Function Expessions (or IIFEs) to prevent local variables from bleeding into an outside...
During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
Until recently, you could open a new tab via window.open when using execute_script in Selenium tests. It no longer...
Regular expressions in Javascript are represented by a RegExp object. There also is a regex literal as in many other...
Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...
While you usually do not need a Content-Type on GET request (which have a blank body), an external API...
You can say this in Javascript: $.fn.jquery => "1.11.1"
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...
The asset pipeline is one of Rails' two mechanisms how stylesheets, javascripts and images from your /assets folder are processed...
To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...
As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...
Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...
You have the following HTML structure:
If you want to run Javascript code whenever someone clicks on a ...
..., you...
Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...
We use Selenium WebDriver integrated with Cucumber/Capybara for full-stack integration testing. Try and use it Your forked MovieDB should...
Unfortunately, Web APIs haven’t provided the functionality to copy text to the clipboard through JavaScript, which is why visiting...
Understand how asynchronous JavaScript works: Read Henning's presentation about asynchronous Javascript (there's also a German video presentation...