[Zope] Telling Users to Wait

Danny William Adair danny@adair.net
Wed, 21 Nov 2001 08:41:47 +1300


On Wednesday 21 November 2001 07:37, Martijn Pieters wrote:
> On Tue, Nov 20, 2001 at 12:19:14PM -0500, Edmund Goppelt wrote:
> > On Mon, Nov 19, 2001 at 04:07:59PM -0500, Martijn Pieters wrote:
> > > A better way is to use the HTTP Refresh header. Remove the Javascript
> > > from the above example, and add:
> > >
> > >   <dtml-call "REQUEST.addHeader('Refresh',
> > >                                 '0;URL=http://server/slow_page')">
> >
> > This is a sweet solution (I'm guessing you meant to write
> > "RESPONSE.addHeader...")  The only thing I don't like about it is that
> > the user cannot use his browser's back button without becoming
> > "trapped".  When he hits the back button, the "please wait" page is
> > loaded which immediately redirects him to the page he was just on
> > (i.e. the slow page).  Is there some way to remove the "please wait"
> > page from the Browser's history list so that the Back button works as
> > expected?
>
> Only with javascript, and then only with browsers that support the
> extension (for which you can test). You can use window.location.replace()
> to replace the current URL with another, which causes the currentl url to
> be removed from the hbrowser history.

Have you searched the mailing list archives for
REPONSE.write
???

This way you can write status messages without disruption.
No need for Javascript, but: You could as well send Javascript :-)

hth,
Danny