You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jo...@aol.com on 2000/05/09 16:50:45 UTC

Determining TARGET frame

I'm working on my own site with mod_perl and mason.

I want cookie exchange ONLY with one particular frame.

I *could* simply just maintain a list of pages that might
validly be in the paricular frame, but I'd prefer something
like...

Is there any method for the Apache::Request object or it's 
Mason counterpart that will show me what the target frame
on the user's browser the request is being made for?

Maybe not.


RE: Determining TARGET frame

Posted by Wim Kerkhoff <wi...@netmaster.com>.
On 09-May-2000 JoshNarins@aol.com wrote:
> I'm working on my own site with mod_perl and mason.
> 
> I want cookie exchange ONLY with one particular frame.
> 
> I *could* simply just maintain a list of pages that might
> validly be in the paricular frame, but I'd prefer something
> like...
> 
> Is there any method for the Apache::Request object or it's 
> Mason counterpart that will show me what the target frame
> on the user's browser the request is being made for?
> 
> Maybe not.

Cookies, AFAIK, don't allow this.  You could do a couple of things to get
around this... Go by path (store each frame in a different path, and send
"Set-Cookie: name=value; path=/framename", or store the frame name in the value
of the cookie and make a loop that gets all the cookies, splits on a separator,
and disards cookies that you don't want...

Regards,

Wim Kerkhoff, Software Engineer
NetMaster Networking Solutions
wim@netmaster.com

Re: [Mason]Determining TARGET frame

Posted by Ian Kallen <sp...@salon.com>.
Clients don't inform the server of what frame a click originates frame,
you'd have to have a query string or URL based session mgt setup and do it
yourself.  You can direct the client what window/frame to load a response
in with a "Window-target" header but that's about all you can do.  OK,
back to Mason and mod_perl....
-Ian

Today, JoshNarins@aol.com <Jo...@aol.com> frothed and gesticulated...:
> I'm working on my own site with mod_perl and mason.
> 
> I want cookie exchange ONLY with one particular frame.
> 
> I *could* simply just maintain a list of pages that might
> validly be in the paricular frame, but I'd prefer something
> like...
> 
> Is there any method for the Apache::Request object or it's 
> Mason counterpart that will show me what the target frame
> on the user's browser the request is being made for?
> 
> Maybe not.
> 
> 
> 
> _______________________________________________
> Mason maillist  -  Mason@netizen.com.au
> http://netizen.com.au/mailman/listinfo/mason
> 

--
Salon Internet 				http://www.salon.com/
  Manager, Software and Systems "Livin' La Vida Unix!"
Ian Kallen <id...@salon.com> / AIM: iankallen / Fax: (415) 354-3326 


Re: [Mason]Determining TARGET frame

Posted by Robin Berjon <ro...@knowscape.com>.
>I'm working on my own site with mod_perl and mason.
>
>I want cookie exchange ONLY with one particular frame.
>
>I *could* simply just maintain a list of pages that might
>validly be in the paricular frame, but I'd prefer something
>like...

Would putting all those pages in one directory (or subdirectories thereof)
and setting a path on the cookie work for you ?



.Robin
Does the name Pavlov ring a bell?