I am writing an application that uses Javascript to manage
the presentation of several iframe-based windows and documents.

I need to create an XPCOM component to pass some object references
among the windows, and I am using the example hinted at

http://developer.mozilla.org/en/docs/Working_with_windows_in_chrome_code

But while I have built a service and tested it by passing simple
paramaters and return values like strings, floats, etc...
the details of such an implementation to support Javascript
objects are eluding me.

For instance, assume my Javascript object is something called
'eventPasser' - this object knows the state of the application
and what to do with incoming methods and events.

When I create an instance XPCOM wrapper service (call it 'epWrapper') what is the proper way to move the Javascript object into the wrapper:

 - through some type of setter, and if so, what would the IDL
     look like?

 - as a property of the 'epWrapper' , again, what would the IDL look
     like?

Thanks, in advance.
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to