OpenID demo
AJAX version
A helper on the server (in this case helper.pl) does the network required operations that the browser can't do. Nothing in the OpenID protocol is JavaScript- or "AJAX"- specific.
Classic version
This uses redirects (also via helper.pl).