Once you re-direct by submit, your current page loses control.  That's
the problem with the submit button.  When user presses, your page is
immediately gone.

You need to manually do this by making your own, fake "submit."  Stick
a .gif "submit look-alike" in your html.

 <img id="submit" src="submit.gif"

Now, in your jquery function(ready)...

$("#submit").onclick() bla bla
{
    1. load or form your waiting message
    2. use AJAX to send your data out.
}

If you need help with AJAX, see the AJAX tutorial at w3schools.com
http://www.w3schools.com/ajax/default.asp


On Nov 2, 2:48 pm, Rich <rich...@gmail.com> wrote:
> I'm trying to implement a processing message and I think Block UI
> might work however I can't seem to get it to redirect after my
> processing is complete.
>
> Basically, I have a form and a submit button which does a post to a
> server and passes in several parameters for calculation.  The server
> can take anywhere from 15-45 seconds to return with the results.
>
> I would like to trigger the modal Block UI div on Submit.  The UI
> would be blocked or grayed out underneath and the modal box would
> appear prominently in the middle of the page and would say something
> like "Calculation in Progress....please stand by".  Also, I will add a
> nice little ajax loader gif to go with the processing message.
>
> I want to keep this message visible until the server is finished with
> the processing.  When I get the response back, (this is the trick), I
> want to redirect to a completely new page with the results.
>
> Can this be done with the BlockUI plugin or does anyone have an
> example on how to do this.

Reply via email to