[webkit-dev] how can i extend new javascript object and its event handler?

Cloud zheng cloud.zheng at borqs.com
Fri Dec 21 01:12:46 PST 2007

Hi, all,

I am trying to use webkit engine to build my application. I want to add
a new javascript object to accomplish some asynchronous operation. 

For example, the new javascript object may be named by 'fooObject'. It
has a function names 'longTimeOperation' and one event handler
'onOperationReady'. Because the function may last a long period, so i do
not want it to be a blocked one. When the function is complete, it can
notify the fooObject and fooObejct.onOperationReady can be called back
from webkit engine.

I think it is much like xmlhttprequest method. But i do not how to
implement it. 

can anyone help me? thanks a lot...


More information about the webkit-dev mailing list