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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
It can by manage if you you using AJAX, and it''s many ways to do it, there one: just show some <div id=''waiter'' style=''dislpay:none''>pleas wait</div> 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/ On Apr 2, 1:25 am, mstoth <mich...-pFXmGr0c18V4uZT98XS8CNBPR1lH4CV8@public.gmane.org> wrote:> 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-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thank you. I implemented something similar to what you described and got it to work. Many thanks. -Michael On Apr 2, 4:23 am, DmitryPush <dmitryp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It can by manage if you you using AJAX, and it''s many ways to do it, > there one: > > just show some <div id=''waiter'' style=''dislpay:none''>pleas wait</div> > 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/ > > On Apr 2, 1:25 am, mstoth <mich...-pFXmGr0c18V4uZT98XS8CNBPR1lH4CV8@public.gmane.org> wrote: > > > 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-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.