Prev: communication protocol
Next: Creating image on-the-fly
From: Skip Evans on 7 Jul 2010 01:09 Hey all, Is there a way to have a window opened with window.open() inherit the parent windows JS environment? In other words, I call window.open() with a URL that displays a form created by a PHP script. JS code has already been loaded by the parent, and I need to be able to access that code via mouse overs and onclick calls from the code in the newly opened window. Is this possible? Thanks, Skip -- ==================================== Skip Evans PenguinSites.com, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://penguinsites.com ------------------------------------ Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut
From: Ashley Sheridan on 7 Jul 2010 05:31 On Wed, 2010-07-07 at 00:09 -0500, Skip Evans wrote: > Hey all, > > Is there a way to have a window opened with window.open() > inherit the parent windows JS environment? > > In other words, I call window.open() with a URL that displays > a form created by a PHP script. > > JS code has already been loaded by the parent, and I need to > be able to access that code via mouse overs and onclick calls > from the code in the newly opened window. > > Is this possible? > > Thanks, > Skip > > -- > ==================================== > Skip Evans > PenguinSites.com, LLC > 503 S Baldwin St, #1 > Madison WI 53703 > 608.250.2720 > http://penguinsites.com > ------------------------------------ > Those of you who believe in > telekinesis, raise my hand. > -- Kurt Vonnegut > Not really anything to do with PHP there :p What you're looking for though is window.opener which allows you to reference the window object of the frame that opened your new window, and access all of its functions and variables. Thanks, Ash http://www.ashleysheridan.co.uk
From: Skip Evans on 7 Jul 2010 12:24 Yup, window.opener it is. Much thanks. I was surprised how much Googling I did and didn't find that. On 07/07/2010 04:31 AM, Ashley Sheridan wrote: > > Not really anything to do with PHP there :p > Well, given the breadth the topics I've seen discussed on this list I thought it would slide by. But for my penance I'll ask the following: "Is there a way to have a window opened with window.open() inherit the parent windows JS environment... when it resides in a much larger PHP/MySQL application?" How's that for a qualifier! :) Skip -- ==================================== Skip Evans PenguinSites.com, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://penguinsites.com ------------------------------------ Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut
|
Pages: 1 Prev: communication protocol Next: Creating image on-the-fly |