[Javascript] windows

Iztok Polanic iztokp at amis.net
Tue May 18 08:09:26 CDT 2004


Hi!

Misunderstanding :(
I have a link which opens a new window and in this new window there are 3
frames. When I user clicks on a link inside a frame it should pass a
variable to the opener window.


Bye,

Iztok
----- Original Message ----- 
From: "Matt Barton" <javascript at mattbarton.org>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Tuesday, May 18, 2004 1:36 PM
Subject: Re: [Javascript] windows


> If I understand your situation correctly then I think that you'll want a
> function to be called on the onload event of the middle frames document.
> The function should be able to reference the opening windows document (and
> forms and elements therein) by using:
>
>     top.opener.document.
>
> In this case "top" refers to the top window in the frames hierarchy, and
> "opener", just like the previous example, refers to the window that
> performed the original window.open.
>
> Let me know if I haven't understood your scenario correctly.
>
> Matt
>
> ----- Original Message ----- 
> From: "Iztok Polanic" <iztokp at amis.net>
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Sent: Tuesday, May 18, 2004 12:07 PM
> Subject: Re: [Javascript] windows
>
>
> > Hi!
> >
> > I've made some corrections to my HTML and the script stopped working
> (which
> > is quite logicall).
> > It now goes like this:
> >
> > 1. User clicks on a link, which opens a html file with frames
> > 2.  The middle frame should send the same variable to opener (parent
> window)
> >
> > What should I change?
> >
> > Bye,
> >
> > Iztok
> > ----- Original Message ----- 
> > From: "Matt Barton" <javascript at mattbarton.org>
> > To: "[JavaScript List]" <javascript at LaTech.edu>
> > Sent: Monday, May 17, 2004 3:19 PM
> > Subject: Re: [Javascript] windows
> >
> >
> > > From: "Iztok Polanic" <iztokp at amis.net>
> > > Subject: [Javascript] windows
> > >
> > >
> > > > parent.document.forms[0].elements[0].value = this;
> > >
> > >
> > > Try:
> > >
> > > opener.document.forms[0].elements[0].value
> > >
> > > HTH
> > >
> > > Matt
> > > _______________________________________________
> > > Javascript mailing list
> > > Javascript at LaTech.edu
> > > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> > --
> > This email has been verified as Virus free
> > Virus Protection and more available at http://www.plus.net
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list