philippe | 25 Jun 11:46
Picon

Syncronization problem with JS_DefineFunctions

Hi

I made a chrome over mozilla .

I use JS_DefineFunctions to déclare functions callable from pages.

Each Time I receive  STATE_STOP and STATE_IS_REQUEST, I call
JS_DefineFunctions.

It works OK.

But now our customers use our browser and in <body use onload="JS_F"

where JS_F is a JS function calling some of the functions defined with
JS_DEFINE_FUNCTIONS

It works, but from time to time, a so called function defined in
JS_DEFINED_FUNCTION is not found.(Maybe it is not loaded at this
moment).

The questions I have are the followings

- Where is the good time to call the JS_DEFINE FUNCTIONS
- Is it possible to be informed that the onload starts.
(Observer .....)
- Is it possible to know if the JS_DEFINE_FUNCTION's completion is OK.

thank's for your response

philippe

Gmane