"SJ" wrote ...
>I have a request to the server that could take upto 10 mins to come back
> and display the results.
> I want to either
> a) Redirect to a new "Please wait" page till the processing is done, then
> redirect back to the results page , or
> b) Display a "Please wait" message on the same page that sends the request
> to the server and refresh the page to display the results.
> I know websites like orbitz and travelocity do this.
>
> Any idea how I would accomplish this?
Hi SJ,
I'm not sure if this is the "best" approach - but it is certain "an"
approach

)
Presumably whatever you are 'triggering' is database driven? Hencing the
processing time? My thought was that perhaps if you were able to ascertain
an ID of sorts, you could keep redirecting to the same page every 10 seconds
or something sending the ID in the form or querystring, and, if this page
receives an ID then it checks the current "state" of the processing, until
it comes back and says "I'm done" it keeps refreshing every 10 seconds.
The page could easily have an animated .gif or something on it to indicate
that something is still happening.
As I said, probably not the best approach, but an approach none the less.
I've fired things off using threading before to ensure they complete, but
I've never (yet) had the need to wait around to see what the outcome was on
the same request.
I don't feel I've been much help - sorry..
Rob