This page shows ow to use transparent messages for a classic HTML post using a form.
The example is a fake change password form.
If you enter correct password/confirmation you will see a success message, otherwise you will see an error message.
The server waits for one second to simulate a long response.

Old-fashion

Try this "old-fashion" change password form.
Password
Confirm
 


With transparent message

One transparent message will be display to indicate that a post is in progress.
And another transparent message will appear just below the title "With transparent message" to display error or notice and will fade after a mouse click.
Password
Confirm
 

Rails code explained

You just have to add 3 lines in your view (RHTML file).

To display flash[:error/:notice] messages after submitting form (my title "With transparent message" has id tm_title):
<%= transparent_flash_message  :top => 30, 
                               :afterElement => "'tm_title'", 
                               :hideMode => "'click'", 
                               :hideDelay => 0, 
                               :displayMode => "'onload'"%>
To generate code for overlay message:
<%= transparent_message_create("info_message", "Saving password<br/>", "/images/progress_FFF.gif")  %>
To display overlay message on form submit, add this after your form (my form id is save_password_form):
<%= transparent_message_for_form "save_password_form", "info_message", :fullscreen => true %>

CSS File (toggle)

Full view code (toggle)