Subj : trying to understand javascript calls To : netscape.public.mozilla.jseng From : Béatrice Philippe Date : Thu Nov 04 2004 11:27 am hello ! i've been trying to understand how javascript engine works and how javascript calls work too for many days (and i don't understand anything). i read two documentations : "javascript C engine embedder's engine" and "How to embed js engine" from Brendan. My need is : in my c++ app, when the web page is completely loaded, i 'd like to execute successively all javascript scripts called in some DOM nodes, and retrieve the new DOM each time it has changed. I found some javascripts calls inside html "href" and some javascripts calls elsewhere like "onClick=...". For a javascript call in "href", i used "EvaluateString()" function. It works one time only. For a javascript call like "onClick", i tried "EvaluateString()" but it doesn't work. I tried to follow the "embed js engine" documentation but for me, some informations are lacking : FindEventTarget() ??? , NewEventObject() ??? As a matter of fact, all is nebulous : what 's a global object ? when should i use js_evaluateScript() or js_callFunction() ??? what is a scriptGlobalObject ??? and so on.... It would be very nice if you can help me. Thank's a lot. -- Béatrice Philippe beatrice.derbez.bd@wanadoo.fr .