It works with -X because that starts up a single apache child. That one
child processes the requests one at a time in the order received. Ie:
frame page, subpage1, subpage2

In normal operation conditions the 3 pages are more or less served in
parallel (well, they're being processed in parallel) which means that
you're not going to get consistent data on the initial load.

I'd really suggest passing through these arguments directly. Ie

<frameset rows='10%,90%'>
   <frame src='top.html?a=1&b=2'>
   <frame src='bottom.html?a=1&b=2'>
</frameset>

You can then use $fdat{a} etc in the subpages directly.

-- 
Andrew O'Brien

> -----Original Message-----
> From: allen haim [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 16 February 2005 8:32 AM
> To: embperl@perl.apache.org
> Subject: Re: %udat and frames
> 
> Hi Gerald,
> 
> Thank you for your response.
> 
> I now have the following in my httpd.conf:
> 
> PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS "Embperl::Session"
> PerlSetEnv EMBPERL_SESSION_CLASSES "File File"
> PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp"
> 
> but it _still_ has the same problems. 
> 
> Is that the correct way to set up a file locker?
> 
> Also, how come it works correctly -- but very very slowly -- 
> when I start
> the server with 
> 
> apachectl -X 
> 
> instead of 
> 
> apachectl start
> 
> ?
> 
> Allen
> 
> On Tue, Feb 15, 2005 at 10:58:19AM +0100, Gerald Richter wrote:
> > Hi,
> > 
> > The problem is that the subpages are start loading before 
> the frame page has
> > finish and saved it's session data. So it might be better 
> to pass the values
> > are arguments to the sub pages
> > 
> > The other alternative is to use a Locker for session data 
> access (instead of
> > Null, e.g. File), this makes sure the session data of the 
> frame is saved
> > before the sub pages can access it.
> > 
> > Gerald
> > 
> > 
> > 
> > 
> --------------------------------------------------------------
> -------------
> > Gerald Richter            ecos electronic communication 
> services gmbh
> > IT-Securityl?sungen * Webapplikationen mit 
> Apache/Perl/mod_perl/Embperl
> > 
> > Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
> > E-Mail:     [EMAIL PROTECTED]          Voice:   +49 6133 939-122
> > WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
> > 
> --------------------------------------------------------------
> -------------
> > ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
> > 
> --------------------------------------------------------------
> -------------
> >   
> > 
> > > -----Original Message-----
> > > From: allen haim [mailto:[EMAIL PROTECTED] 
> > > Sent: Tuesday, February 15, 2005 5:21 AM
> > > To: embperl@perl.apache.org
> > > Subject: %udat and frames
> > > 
> > > Hi,
> > > 
> > > I've narrowed down the problem I was referring to in my 
> > > previous letter. Try
> > > this:
> > > 
> > > bottom.html:
> > > #################################################
> > > <html>
> > >     <head><title>bottom</title></head>
> > >         <body>
> > >             this is the bottom
> > > 
> > >             the value is: [+ $udat{'a'} +] 
> > > #################################################
> > > 
> > > 
> > > top.html:
> > > #################################################
> > > <html>
> > >     <head><title>top</title></head>
> > > 
> > >     <body>
> > >         this is the top
> > > 
> > >         the value is: [+ $udat{'a'} +]
> > > #################################################
> > > 
> > > 
> > > frameset.html:
> > > #################################################
> > > [-
> > > 
> > > $udat{'a'} = 'a';
> > > $udat{'b'} = 'b';
> > > $udat{'c'} = 'c';
> > > 
> > > -]
> > > 
> > > 
> > > <html>
> > > 
> > >         <head>
> > >             <title>frame test</title>
> > >         </head>
> > > 
> > >         <frameset rows='10%,90%'>
> > >             <frame src='top.html'>
> > >             <frame src='bottom.html'>
> > >         </frameset>
> > > 
> > > </html>
> > > #################################################
> > > 
> > > 
> > > base.html:
> > > #################################################
> > > [- Execute ('*')  -]
> > > #################################################
> > > 
> > > 
> > > and point your browser to 'frameset.html'. You will see that 
> > > 'a' doesn't show up on both frames at once. My expectation 
> > > was that it would.
> > > 
> > > Now click reload. For me, the 'a' now jumps from the top to 
> > > the bottom! Then I click reload again, and now the 'a' is 
> > > visible in both frames.
> > > 
> > > Do I have a flawed expectation of how this should work 
> with frames?
> > > 
> > > Thanks
> > > 
> > > Allen
> > > 
> > > --
> > > happy random george orwell advice for making tea:
> > > 
> > >   Anyone who has used that comforting phrase 'a nice cup 
> > > of tea' invariably means Indian tea.
> > > 
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -- 
> happy random george orwell advice for making tea:
> 
>       Anyone who has used that comforting phrase 'a nice cup 
> of tea' invariably means Indian tea.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to