Sign in through GitHub
Applied Filters: Ajax x
Private Pub
Episode #316Jan 16, 201219 comments

Private Pub

Private Pub makes it easier than ever to publish and subscribe to real-time events in a Rails app. You can use publish_to with a block of JavaScript or supply a hash for use with JSON. (7 minutes)
Endless Page (revised)
Episode #114Dec 16, 201114 comments

Endless Page (revised)

Transform traditional pagination into infinite scrolling which will automatically fetch more records when the user scrolls down to the bottom of the page. (7 minutes)
In-Place Editing
Episode #302Nov 28, 201145 comments

In-Place Editing

Edit an attribute in-place without leaving a page using the Best In Place gem. Learn how to add validations and support for various field types. (8 minutes)
Auto-Complete Association (revised)
Episode #102Nov 10, 201110 comments

Auto-Complete Association (revised)

A select menu is often used for setting a belongs_to association, but you should also consider using a text field with autocomple. Here I use jQuery UI and show two different solutions: client side and server side. (9 minutes)
Running JavaScript in Ruby
Episode #297Nov 07, 201124 comments

Running JavaScript in Ruby

Sometimes logic needs to be shared between the server-side (Ruby) and the client-side (JavaScript). Here I show how to run JavaScript directly in Ruby through ExecJS and therubyracer. (14 minutes)
Playing with PJAX
Episode #294Oct 31, 201131 comments

Playing with PJAX

PJAX allows you to quickly update a section of a page using AJAX with automatic pushState support. Here I show how to use both pjax_rails and rack-pjax gems. (8 minutes)
Sortable Lists (revised)
Episode #147Oct 13, 201141 comments

Sortable Lists (revised)

Here I show how to use jQuery UI to make a sortable list and a "sort" action to handle the updating. Top it off with acts_as_list to make it feature complete. (6 minutes)
Token Fields
Episode #258Mar 21, 201174 comments

Token Fields

With the jQuery Tokeninput plugin it is easy to add an autocompleting list of entries for a many-to-many association. (11 minutes)
Offline Apps Part 2
Episode #248Jan 10, 201113 comments

Offline Apps Part 2

Learn how to make a site usable offline with HTML 5 localStorage. This last part of the series covers jquery-tmpl and jquery-offline. (14 minutes)
AJAX History State
Episode #246Dec 27, 201026 comments

AJAX History State

The new pushState function in JavaScript allows us to change the full URL with AJAX. This means the back button, reloading, and bookmark support can be easily added. (10 minutes)