Showing 7 videos tagged with javascript

How to Create a File Upload Progress Bar in Rails, Passenger, Prototype and Low Pro

An upload progress bar is one of the best ways to improve the usability of file uploads in your application. This screencast will show how to create a file upload progress bar using Rails, Passenger, Low Pro and the upload progress bar apache module.

Embracing Collaboration with JRuby and JavaScript

As web developers, we live in an arranged marriage with JavaScript. What is a Rubyist to do? Use JavaScript as a compile target? Abstract it away on the server? With JRuby, we can embrace the shared language of the web in a compelling way, building reusable libraries that work across the client-server boundary. By bridging Ruby to JavaScript using Rhino, we gain shared databases, including their indexing strategies. We gain remote model discovery and shared client/server validation. We gain a... View More

Nested Model Form Part 2

00:12:40 railscasts.com
Add and remove nested model fields dynamically through JavaScript using either Prototype or jQuery.

Dead simple JavaScript Unit Testing in Rails

Writing tests are great for helping you design and think out your code, and the bonus is you end up with a test suite to aide in fighting against regressions. Why? It’s embarrassing when your JavaScript doesn’t work in production. But how do you get started with testing JavaScript? How do you make it easy? I mean, so easy that you’d feel stupid to not write tests?

Unobtrusive Javascript

00:15:11 railsenvy.com
Some topics covered in the video: A bit of history and how we got here. Semantic Markup Obtrusive Examples Benefits of coding unobtrusively Examples, specifically to Rails Guidelines and assumptions you should make when coding javascript Graceful degredation Namespacing

Railscast - Episode 77: Destroy Without JavaScript

00:07:08 railscasts.com
If the user has JavaScript disabled, the "Destroy" link might not work properly. In this episode I will explore a number of ways to work around this issue.

Railscast - Episode 136: jQuery

00:09:49 railscasts.com
How do you use jQuery with Rails? In this episode I redo episode #43 using jQuery instead of Prototype/RJS.