You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Joe Schaefer <jo...@sunstarsys.com> on 2000/09/28 23:57:50 UTC
Re: ?? Server-push or sending multipart (multiple pages) data to clie nt
"Lang, Cliff" <cl...@proxicom.com> writes:
[...]
> request : www.mysite.com/userdir/index.html When this request comes in and
> based on some settings in the authen-db, we need to generate not only the
> data from index.html, but also send the file www.mysite.com/core/info.html
> which would be opened in another window.
Server push has been dead for some time- IE5 doesn't even support the
x-multipart-replace header. The known IE5 "workaround" is to just send
entire <html>..</html> bodies in sequence w/o additional header info,
but you probably shouldn't invoke heavy browser voodoo unless you're
seriously `charmed'.
A lesser (and safer) magic would be to insert a javascript snippet
in each page. The javascript opens the window and makes the request for
/core/info.html. Install an appropriate mod_perl content filter for
"<Location /userdir>" with a line like
s/<body>/<body onLoad='open("/core/info.html", "other_window")'>/io;
Some variation on this might do the trick.
--
Joe Schaefer
joe@sunstarsys.com
SunStar Systems, Inc.