O'Reilly logo

Jump Start Sinatra by Darren Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6Jazzing up with JavaScript

Our web application is now coming along nicely—we have a number of pages, a database of songs, login functionality, and an email contact form. In this chapter we’re going to go use JavaScript to add some extra effects and functionality to the front end of the application.

We won’t be getting our hands dirty writing JavaScript, though. Instead, we’ll use CoffeeScript—a nicer alternative to all the brackets and curly braces of JavaScript —that will then be compiled into JavaScript for us.

In addition, we’ll be using the jQuery library to add a date-picker to the song form to make entering a date easier. Then we’ll finish off by adding a Like button to each song, so that users can show their love for the song. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required