On 23 čnc, 05:58, Johnson <[email protected]> wrote: > > Because it will detect subframe loads that start after the main page has > > finished loading (e.g. a user clicking a link in the subframe). > > I don't quite understand the meaning of "documentLoaded event only on > top frame", it may mean: > > 1. the "documentloaded" event occurred in the top frame > 2. the whole document is loaded completely > > If the first one, you are right, other means are requeired. If second, > I am right. > > XULRunner SDK does not provide the event DocumentLoaded, it only > provide the event OnStateChange, and we should use the latter event > and its parameters to determine whether the document is loaded. I did > provide a means to solve a problem, which may be the asker's problem, > and may be not. > > Thank you for leading me to deeper thought.
Actually I needed to detect that the whole document was loaded. Sorry I didn't express it right. Johnson thank you very much, changing the flag solved the problem. That's exactly what I needed and will never find out alone :) Thank you both for your comments, it made me understand things a bit deeper then before. _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
