Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #31600

Re: iframe function

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: iframe function
Date 2016-10-24 04:26 +0100
Organization PointedEars Software (PES)
Message-ID <1766631.oMNUckLgyt@PointedEars.de> (permalink)
References <obqdnb-4PICQ55DFnZ2dnUU7-IHNnZ2d@westnet.com.au>

Show all headers | View raw


Andrew Poulos wrote:

> If a page contains an IFRAME and the IFRAME has some JavaScript that
> looks like:
> 
> var aVar = "hello";
> 
> var myFunc = function() {
>    return (aVar == "hello");
> };
> 
> window.parent.myFunc = myFunc;
> 
> and in the parent window I call myFunc() is the aVar value the one in
> the IFRAME or the one in the parent window?

Yes.

<http://catb.org/esr/faqs/smart-questions.html#prune>
<http://catb.org/esr/faqs/smart-questions.html#idm45835691719280>
 
> I've got a, for me, complex elearning course that uses an IFRAME for
> some things and the parent window for others and I'm trying to debug
> some errors but I don't really understand what the "correct" answer
> should be.

<http://catb.org/esr/faqs/smart-questions.html#idm45835691716720>

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

iframe function Andrew Poulos <ap_prog@hotmail.com> - 2016-10-24 14:03 +1100
  Re: iframe function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-10-24 04:26 +0100
    Re: iframe function Andrew Poulos <ap_prog@hotmail.com> - 2016-10-24 19:17 +1100
      Re: iframe function Tim Streater <timstreater@greenbee.net> - 2016-10-24 10:03 +0100
      Re: iframe function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-10-24 11:16 +0100
        Re: iframe function Tim Streater <timstreater@greenbee.net> - 2016-10-24 11:28 +0100
        Re: iframe function Luuk <luuk@invalid.lan> - 2016-10-24 19:19 +0200
          Re: iframe function Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-10-25 21:19 +0100
            Re: iframe function Luuk <luuk@invalid.lan> - 2016-10-26 22:30 +0200
      Re: iframe function Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2016-10-26 06:15 -0200
        Re: iframe function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-10-27 22:11 +0100
  Re: iframe function JJ <jj4public@vfemail.net> - 2016-10-24 13:25 +0700
    Re: iframe function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-10-24 11:58 +0100
      Re: iframe function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-10-24 12:16 +0100

csiph-web