Prototype Window Login Form with Ajax/RJS

Posted by anup.narkhede on March 01, 2007

Here is a simple tutorial to demonstrate the use of prototype Window login form with RubyOnRails and Ajax. The idea behind this is to override Ok event of Dialog.confirm() form and send Ajax request to controller. The demo application makes use of RJS for Ajax callbacks.

See Live Demo


To begin with, download prototype windows library, copy javascripts in your public/javascripts folder and themes to stylesheets folder.

Include the javascripts and stylesheets in layout header.Look at our application.rhtml layout for complete details.

Continue reading…