[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: ?? Server-push or sending multipart (multiple pages) data to clie nt
From:       Joe Schaefer <joe+apache () sunstarsys ! com>
Date:       2000-09-28 21:57:50
[Download RAW message or body]

"Lang, Cliff" <clang@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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic