you might consider including the loading stuff in a hidden div, and
then,
when you trigger something with the observe field, you can use some
javascript to show it. I think that this should work. Any other
thoughts?
I don’t think you need ajax, just javascript.
if using prototype something like
Element.show(‘loading’)
this should work if you have a div with an id that’s loading.
no need to make a round trip to the server.
Good point, but the value of the loading div is its immediacy in the
user
experience. So using javascript rather than ajax even if there is a
trip to
the server still has the advantage of being faster.