On Jan 22, 2015, at 3:28 AM, Rafi A <rafiglitz@gmail.com> wrote:
> Hi,
>
> I know it is possible to display spinners for long running Ajax calls. Can we display any progress-bar/ spinner over the client side for the long running non-ajax request?
>
> Please suggest some way to achieve that.
You can do a fake progress bar in JavaScript, but unless your server has some way to calculate the remainder of the request, and you have (most likely need to recompile Apache) installed some sort of progress system in your server, there's nothing built into Rails that will give you back a real estimate of progress. So anything you do will likely be just a cheat. The spinner is honest (says "I have no idea when, but not yet done").
Here's a fake one I wrote a while back for a project using bootstrap and Prototype.js
Walter
>
> Regards,
> Seeni Rafiyullah Khan A,
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BfXU%2B0POx3Pz6hkebbFOQSmOTpLV5_tEkhkdVLC2g02bzuDDg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/B73B2127-10F8-455E-AC37-9E07F2B578EF%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment