Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (16 sloc) 0.681 kB

ABOUT

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.

INSTALLATION

via Github

git clone git://github.com/mhawkins/jquery-ahah.git

REQUIREMENTS

Ruby and the following Rubygems:

  • sinatra
  • haml

RUNNING THE CODE

From your console

cd PATH_TO_APP

ruby ahah.rb

Now in your browser, go to

http://0.0.0.0:4567

From there, try submitting the form with and without JavaScript.

Jump to Line
Something went wrong with that request. Please try again.