We have been using element observers for user registration feedback in Lyceum http://demo.lyceum.ibiblio.org/register but have discovered a problem.
new Form.Element.Observer('user_login', 0.1,
function(element, value) {
new Ajax.Updater('usernameMsg','<?php echo WEBROOT ?>/ajax/availability.php', {
asynchronous : true,
method : 'post',
parameters : 'action=checkLogin&login='+ value
})
}
);
Because we set the observer to check a field every tenth of a second due to users complaining about lag time, we now find that sometimes the last message received does not correspond to the last message sent due to network congestion / routing / normal quirks. I had originally assumed TCP's guarantee would take care of that but I see it's a moot point because these are separate messages. If you felt like adding such functionality I'm sure it would be useful to many people who wish to have more responsive feedback.