Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31603
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: iframe function |
| Date | 2016-10-24 10:03 +0100 |
| Message-ID | <241020161003047932%timstreater@greenbee.net> (permalink) |
| References | <obqdnb-4PICQ55DFnZ2dnUU7-IHNnZ2d@westnet.com.au> <1766631.oMNUckLgyt@PointedEars.de> <4sSdnU3AsOIeXpDFnZ2dnUU7-TXNnZ2d@westnet.com.au> |
In article <4sSdnU3AsOIeXpDFnZ2dnUU7-TXNnZ2d@westnet.com.au>, Andrew
Poulos <ap_prog@hotmail.com> wrote:
>On 24/10/2016 2:26 PM, Thomas 'PointedEars' Lahn wrote:
>> 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>
>
>Your understanding of JavaScript and other internet-based technologies
>is unquestioned (at least by me) but I often feel your advice is less
>than helpful.
I think you mean "never helpful".
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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