Re: cross-frame scripting

From: Date: Fri, 08 Oct 2004 17:51:51 +0000
Subject: Re: cross-frame scripting
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-14490@lists.php.net to get a copy of this message
On Fri, 2004-10-08 at 15:22, Skip Niemeyer wrote: > Hi, > > > > I’m new to php (this week) so forgive the novice question. > > I need to do some cross-frame scripting and am trying to find the php > equivalent to the Javascript command… > > parent.frames("main").document.write($output); > > I’ve worked through the install, accessing mySQL and XML and > instantuating classes, but this (what should be) simple task eludes > me. > > Thanks, You still use Javascript (which runs in the client's browser). Just use the PHP "echo" command to send out your Javascript. As PHP is code which runs on the server, not in the browser, there is no equivalent. HTH Chris

« previous php.install (#14490) next »