Example of a AJAX calls done after specific steps, and how to use the before_remote_ajax and after_remote_ajax events
- An ajax call will be done after the second step, simulating serverside validation (will always "fail"). Done using the remoteAjax option
- Callbacks bound to the before_remote_ajax and the after_remote_ajax events triggered by the remote ajax functionality.
- Note that this example will not work in chrome, but the functionality should work when used on a server.