Providing feedback to users

I have an application which does some time-consuming work after a form
is submitted.
I’d like to have a little message saying “please wait” but I’m not
sure how to implement that.

I’m thinking somehow you have to send a page to the browser from the
method that is being called by the form.
Sounds like a basic thing but I’m kind of new to RoR.

Any ideas?

-Michael

It can by manage if you you using AJAX, and it’s many ways to do it,
there one:

just show some

pleas wait

on ‘ajax start’ event and hide this one on ‘ajax end’ event.

If you choose jqure (jquery.com) it would look like:

$(“#loading”).ajaxStart(function(){
$(this).show();
});

(“#loading”).ajaxStop(function(){
$(this).hide();
});

http://api.jquery.com/ajaxStart/
http://api.jquery.com/ajaxStop/

Thank you. I implemented something similar to what you described and
got it to work.
Many thanks.

-Michael