I have written an XPConnect plugin and want to pass the actual object to
an XPConnect method.

e.g.
interface nsView1 : nsISupports {
     void Attach(in nsISupports pView);
};

In the html page using javascript
 <embed type="application/x-views-views" name="View1">
<embed type="application/x-viewsr-views" name="View2">
document.View1.Attach(document.View2);

Instead of the Attach method receiving an nsISupports interface for nsView1,
it receives an nsISupports interface for nsIDomHTMLEmbedElement.

Does anyone know if I can get the nsISupports interface for nsView1 or
the nsView1 interface through the nsIDomHTMLEmbedElement.

Thanks,
Jeff





Reply via email to