My understanding: initContext: very early, neither onload nor DOMContent loaded event have fired. loadedContext: this should be equivalent to onload, it is what most modules use. You probably want this one. showContext: does not depend upon page loading, this event signals that the Firebug UI for the context is being painted.
Beware that in the real world there is no such thing as "page loaded". Javascript can arbitrarily change the page continuously. On Sep 29, 5:21 am, Jan Odvarko <[EMAIL PROTECTED]> wrote: > Not easy question. Originally the initContext method (within your > module object derived from Firebug.Module) is designated for all init > stuff made when page is loaded/ing. However it's not ensured that the > page is really loaded at this point. Notice that this method is called > by tabWatcher.js witch is not the best code in the world. > > Recent thread about tabWatcher > here:http://groups.google.com/group/firebug/browse_thread/thread/b76894a1e... > > I would recommend to experiment with initContext and showContext > (fired a bit later). > You can also register your own nsIWebProgressListener (tabWatcher is > based on it) or > perhaps register DOMContentLoaded handler > > HTH > > Honza > > On Sep 29, 12:06 pm, tan <[EMAIL PROTECTED]> wrote: > > > Hi > > > How can you check when the user document is fully loaded. > > With "user document" I mean the web page/context. > > > I guess many of the existing panels do this, but I still strives a bit > > with connecting the dots :) > > > I want to execute some stuff in my panel when the page is loaded. > > > thanks for any advice, > > > regards > > > tan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~---
