Re: method execution problem
From: Joe Fawcett (joefawcett_at_hotmail.com)
Date: 02/12/04
- Next message: Joe Fawcett: "Re: ShowModalDialog"
- Previous message: AF: "Re: tooltip for a SELECT object"
- In reply to: Filiz: "Re: method execution problem"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Joe Fawcett: "Re: ShowModalDialog"
- Previous message: AF: "Re: tooltip for a SELECT object"
- In reply to: Filiz: "Re: method execution problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|