Re: [PHP-DB] Frame permissions and php3 scripts From: Datahntr (ododa <email protected>)
Date: 07/14/00

"rgp systems" <rgp <email protected>> wrote in message
news:B594BC80.55D5%rgp <email protected>
> 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.

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>