This is a super simple example of Asynchronous HTML and HTTP (AHAH) and progressive enhancement. Try submitting the form with JavaScript turned and turned off. With JavaScript on, you'll see a greeting appear display above the form. With JavaScript off, you'll be redirected to a page containing the greeting.
git clone git://github.com/mhawkins/jquery-ahah.git
Ruby and the following Rubygems:
- sinatra
- haml
From your console
cd PATH_TO_APP
ruby ahah.rb
Now in your browser, go to
From there, try submitting the form with and without JavaScript.