[REBOL] Re: New Document (CGI)
From: petr::krenzelok::trz::cz at: 25-Apr-2002 13:00
Gabriele Santilli wrote:
>On Wednesday, April 24, 2002, 12:21:58 PM, you wrote:
>AJ> I am playing with some CGI.... I have a time consuming script that happens
>AJ> in the background & I want to let the user know something is happening, but
>AJ> when it is done I want to send the user a fresh page & get rid of the
>AJ> notification stuff. Has anyone here done anything similar?
>It's not very popular, and I don't know how well it is supported
>across browsers, but you could use "server push". Basically you
>return your page as a special multipart MIME type (I think it was
>something like multipart/replace, I don't remember); you return
>the first part immediately with the "please wait" message; then
>you return the second part, and the browser uses it to replace the
>You should be able to find more info on the net, maybe on the w3c
>site or in some RFC.
What about returning simply html containing some "Wait a moment ..."
message, and also containing something like:
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.your-url">
You can specify time, for which your browser should wait ... then it
will try to reload the url. Now the only one thing you need is to
generate unique id/handler, and pass it to the script, e.g.
<META HTTP-EQUIV="Refresh" CONTENT="0;
... it would simply call some script, which could check if the file of
appropriated id is available and if so, return its content back ...