markbates/coffeebeans

Posted Almost 13 years ago by Lexy.
github.com

When CoffeeScript was added to Rails 3.1 they forgot one very important part, the ability to use it when responding...

A nicer way to run RSpec and/or Cucumber

Posted Almost 13 years ago by Henning Koch.

geordi, our collection of awesome shell scripts, has been extended by three scripts to help you call RSpec or Cucumber...

Soft-scroll to an anchor with jQuery

Posted Almost 13 years ago by Arne Hartherz.

This snippet makes links that refer to an anchor (like "...

...") scroll softly to it.\ In this example we only do...

IE7 not properly redrawing elements with position: relative

Posted Almost 13 years ago by Tobias Kraze.

If you manipulate the DOM with JavaScript and your page contains nested elements with position: relative, chances are Internet Explorer...

Cucumber steps to travel through time with Timecop

Posted Almost 13 years ago by Ulrich Berkmueller.

These steps are now part of Spreewald. Here are some useful examples how to use the attached Cucumber Timecop steps...

Rails 3.1: Release candidate

Posted Almost 13 years ago by Lexy.
weblog.rubyonrails.org

Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...

Matching line feeds with regular expressions works differently in every language

Posted About 13 years ago by Henning Koch.

Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...

Playing audio in a browser

Posted About 13 years ago by Henning Koch.

If you want to play music or sounds from a browser, your choice is to use either Flash or the...

Apprise - The attractive alert alternative for jQuery

Posted About 13 years ago by Lexy.
thrivingkings.com

An alert alternative for jQuery that looks good. Apprise is a very simple, fast, attractive, and unobtrusive way to communicate...

Rails jQuery UJS: Now Interactive

Posted About 13 years ago by Lexy.
alfajango.com

We can now plug into every facet of the Rails jQuery UJS adapter, binding to custom events, and even customizing...

Open the on-screen keyboard on an iPhone or iPad with Javascript

Posted About 13 years ago by Henning Koch.

There is no way to do it. This behavior is by design. You lose.

Cancelling event propagation

Posted About 13 years ago by Tobias Kraze.

Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...

Making IE 9 happy

Posted About 13 years ago by Tobias Kraze.

If you're using jQuery, you need to update to 1.5.1 to get Internet Explorer 9 to work.

Liquid Canvas

Posted About 13 years ago by Arne Hartherz.
ruzee.com

Liquid Canvas is a JavaScript library which allows you to draw inside an HTML canvas element with an easy yet...

PhantomJS: Headless WebKit with JavaScript API

Posted About 13 years ago by Lexy.
phantomjs.org

PhantomJS is a minimalistic headless WebKit. It has fast and native support for various web standards: DOM handling, CSS selector...

Upgrading Cucumber and Capybara to the latest versions available for Rails 2

Posted About 13 years ago by Ulrich Berkmueller.

Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2

Onload callback for dynamically loaded images

Posted About 13 years ago by Tobias Kraze.

Sometimes you need to dynamically load an image and do something as soon as its loaded (when for example its...

Skip Selenium scenarios in a Cucumber run

Posted About 13 years ago by Henning Koch.

Cucumber scenarios that are tagged with @javascript so they run with Selenium are very slow. You might not want to...

CSS3 Pie: Element not properly redrawn

Posted About 13 years ago by Tobias Kraze.

Pie sometimes does not properly redraw elements upon changes. This often happens when the change comes from somewhere further up...

JavaScript Garden

Posted About 13 years ago by Lexy.
bonsaiden.github.com

JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives...

Traversing the DOM tree with jQuery

Posted About 13 years ago by Henning Koch.
api.jquery.com

jQuery offers many different methods to move a selection through the DOM tree. These are the most important: $element.find(selector...

Convert Adobe Flash FLA files into HTML5 with Wallaby

Posted About 13 years ago by Lexy.
labs.adobe.com

"Wallaby" is the codename for an experimental technology that converts the artwork and animation contained in Adobe® Flash® Professional (FLA...

Check that an element is hidden via CSS with Spreewald

Posted About 13 years ago by Henning Koch.

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

Exchange messages between Javascript and Flash

Posted About 13 years ago by Henning Koch.
adobe.com

Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...