I use this to simulate the (non-existing) :last-letter CSS pseudoclass, e. g. to insert a tombstone at the...

This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...

This is non-trivial because you need to fake event objects and require different code for different browsers. Luckily, there...

This works well in the simplified case, when your link disappears after it was clicked. Let link_to_remote behave...

makandracards.com

The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...

CSS4 comes with :has. E.g. h1:has(b) would select all tags that contain a tag. This is implemented in...

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

thegleebox.com

gleeBox is an experimental project that takes a keyboard-centric approach to navigating the web. It provides alternatives to actions...

github.com

BubbleTree is a library for interactive visualization of hierarchical data. Originally developed mainly for spending data, the library is now...

stackoverflow.com

Though the W3C even gives it as an example, no browser actually supports this CSS: img:before { content: "something"; }

makandra dev
jashkenas.github.com

Imagine all the syntactical delights of Ruby and Haml for your JavaScript. You write in a nice language, but get...

stackoverflow.com

From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string:

github.com

jQuery plugin that makes it easy to dynamically add and remove records when using ActiveRecord's nested attributes.

makandra dev
github.com

jQuery plugin to fire events when user's cursor aims at particular dropdown menu items. For making responsive mega dropdowns...

singlepageappbook.com

Great look at the tradeoffs between progressive enhancement with jQuery or similiar, vs. client-side views.

makandra dev
tsvensen.github.com

jQuery plugin for equalizing the height or width of elements.

tympanus.net

A jQuery audio player plugin that is responsive and touch-friendly. The UI is css-only, no images used.

turnjs.com

turn.js is a plugin for jQuery that adds a beautiful transition similar to real pages in a book or magazine...

weblog.rubyonrails.org

jQuery as new default Javascript library, streaming response support, attr_accessible with roles, prepared statements, easier migrations.

weblog.rubyonrails.org

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

prototypejs.org

jQuery's selector engine, live()-like event handlers, pixel-perfect layout measuring.

code.google.com

WKRTE is a jQuery rich text editor based on lwrte by plandem.

Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...

makandra dev

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

Best results in other decks

We maintain several forks since [CVE-2023-23913] of rails-ujs and jquery-ujs. Since each Rails app has a different way of handling asset packages, we introduced several new...

...gem with one of our forked versions. Use the NPM package @railslts/jquery-ujs to replace the jquery-ujs NPM package, e.g. with npm install @railslts/jquery-ujs. Use the NPM package @railslts/rails-ujs to...

Search in all decks