hi. try this:

var child_win = window.open('child.html','child_win');
child_win.onload = function(){ child_win.firedFunction('data')};

The concept is to put an onload event listener for the child window via
parent.

Hope this helps.

On Mon, Oct 20, 2008 at 3:35 PM, Garrick <[EMAIL PROTECTED]> wrote:

>
> Just doing a little research here. I've got a parent window that opens
> a child window that will load a swf, on click. The problem I can't
> seem to get is to how to pass data into the child window to be loaded
> in the swf once the child window has been opened.
>
> So is it possible to fire a function in the child window from the
> parent window like:
>
> var child_win = window.open('http://www.test.com','child_win');
>
> child_win.firedFunction('data');
>
> And in the child_win there's this function:
>
> var firedFunction = function(str){
>    alert(str);
> }
>
> The plan is that I've got MooTools Swiff to load the swf file and then
> I can pass data into it via some function.
>
> -Garrick-




-- 
Jeffrey T. Go
Multimedia Designer/Programmer

What's my specialty? - Kicking fish.

Reply via email to