Re: Frame permissions and php3 scripts

From: Date: Fri, 14 Jul 2000 17:36:37 +0000
Subject: Re: Frame permissions and php3 scripts
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1153@lists.php.net to get a copy of this message
"rgp systems" <rgp@systame.com> wrote in message news:B594BC80.55D5%rgp@systame.com... > Anyone know if there's a way to allow a php script loaded into a frame to > access variables in another frame. I get permissions errors if I try to do > this. If I'm not mistaken, frames are always loaded from separate files. That means they run asynchronously (neither sequentially nor concurrently). And you can only be sure that the "main" page which contains the frame definitions will load first, ie, you cannot be sure which of the non-"main" pages loads first or finishes processing first. So accessing variables is at best difficult here. To circumvent that issue, I would suggest that you process any data producing variables that need to be shared in the document that creates the frame definitions, then pass the shared variables in the URL with urlencode, and do the further processing that way. However, if the shared variables change often (or ever), the entire document, frames and all, need to be reloaded. Not necessarily an optimal solution. > > Also, if anyone's had success loading scripts into layers I'd like to know > how you did it; I've been unable to get anything to load into layers. > I don't know the first thing about using layers. From the little I do know, it seems you're likely to have the same problems as above, and that a similar fix to the above *may* work. -- O.

« previous php.db (#1153) next »