Thanks for the hint, I know that XPCOM component can be used as script
object in webpage, but actually what i mean is somehow as:
Object* object = new CustomizedObject(); /* customizedobject class has a
slot named "test" */
webframe::addToJavascriptWindowObject("foo", object);
then in webpage, we can use "foo.test()" to invoke the method of a runtime C
object.
Is that still possible?
On Thu, Jun 4, 2009 at 9:21 AM, Boris Zbarsky <[email protected]> wrote:
>
> Harry Zhang wrote:
>
>> Thanks Boris for your hint, but what's the "scriptable interface" your
>> mentioned, i'm a newbie :P
>>
>
> See http://www.mozilla.org/scriptable/ and
> http://www.mozilla.org/scriptable/faq.html and
> http://mxr.mozilla.org/seamonkey/source/xpcom/sample/
>
> -Boris
>
>
>
>
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding