XPCOM/hulahop: waiting for JavaScript finished?

J

John Bokma

I am playing a bit with hulahop/xpcom using the code found at

http://www.advogato.org/article/1014.html

but have no idea how to check if some JavaScript has finised running.
The _loaded method of Browser is called after the document has finished
loading, but as far as I can tell this doesn't mean that the JavaScript
has finised setting things up.

Is there a way to either wait a few seconds in _loaded (fragile, of
course). time.sleep() (as expected) blocks.

Or better, is there a way to check if JavaScript has stopped running?
(Hmmm... thinking of it, this can also run on events, so maybe there is
no good way to do this?)

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top