Re: method execution problem

From: Joe Fawcett (joefawcett_at_hotmail.com)
Date: 02/12/04


Date: Thu, 12 Feb 2004 09:08:42 -0500

Filiz <anonymous@discussions.microsoft.com> wrote in message
news:405DC9B5-5631-4045-952E-A643ACD2166C@microsoft.com...
> In the Parent.html page there is a iframe. The page loaded in the iframe
imports a js file, ie "Frame.js" and
> it has a method like
> function childMethod()
> {
> if(...)
> {
> ...
> }
> else
> parent.parentMethod();
> }
>
> parentMethod is in the Main.js file and the js file is included in the
Parent.html.
>
> function parentMethod();
> {
> //alert("here");
> .....
> }
>
> if I uncomment the alert statement in the parentMethod, method executes
and returns a result.
> But as I mentioned before without alert it sometimes doesn't execute and
doesn't return any results.
> I also tried this method with a window.status instead of alert, it seems
to be working. Is it a synchronization problem of jscript
> or frame problem?
>
> Thanks in advance
>
>
Can you add an alert to the first part of the if statement in the
childMethod as well as as the first line of this method. Then you would know
that the method is bbeing called at all and which branch was executing.

Joe



Relevant Pages

  • Re: Cross domain iframe access
    ... value of the - location - property of an IFRAME that contained a page ... babyhood and "throw" even for programmers was first associated with ... sense as one doesn't break code execution unless it is indeed ...
    (comp.lang.javascript)
  • Re: method execution problem
    ... alert is a window method. ... > parentMethod is in the Main.js file and the js file is included in the ... > if I uncomment the alert statement in the parentMethod, method executes ... Is it a synchronization problem of jscript ...
    (microsoft.public.scripting.jscript)
  • Re: General DHTML question about ID
    ... alert -> ... so what i want to say is, i can only set the src property of an iframe ... without even the implied warranty of merchantability ...
    (microsoft.public.scripting.jscript)
  • Re: method execution problem
    ... The page loaded in the iframe imports a js file, ... parentMethod is in the Main.js file and the js file is included in the Parent.html. ... But as I mentioned before without alert it sometimes doesn't execute and doesn't return any results. ... Is it a synchronization problem of jscript ...
    (microsoft.public.scripting.jscript)
  • addEventListener to IFRAME
    ... How to execute a function on 'load' of iframe.. ... alert the title of loaded document.... ...
    (comp.lang.javascript)