On Jul 13, 2007, at 12:12 PM, Mark Copper wrote:
> How do you get a server to provide 2 pages for a single request? Eg.
>
> page 1:
> Secret info: pi = 3.
>
> page 2 (1 minute later):
> Time's up!
>
> or
>
> page 1:
> your request is being processed
>
> page 2:
> (mod_perl handler serves pdf doc)
>
> page 3:
> Did your document print OK?
>
>
> This is almost surely the wrong place to ask, sorry.
It definitely isn't a Mason issue but it's an easy thing to do anyway.
There are at least a couple of ways to handle it.
The first is to use the HTML META tag in the HEAD area of page 1 to
specify a redirect.
<meta http-equiv="refresh" content="60;url=http://
www.wonderfulmasonhost.com/page2">
put that in the HEAD section of the HTML and in 60 seconds the page
should refresh by loading a new page from the given URL.
The second way is to use some Javascript embedded in the page, but
given how easy the refresh tag is I wouldn't bother with Javascript.
In either case the server isn't doing anything special; the browser
is doing all the work of fetching the second or third pages.
- john romkey
http://www.romkey.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users