Compare Revisions

How To Pass an XPCOM Object to a New Window

Change Revisions

Revision 178155:

Revision 178155 by Sheppy on

Revision 178156:

Revision 178156 by Sheppy on

Title:
How To Pass an XPCOM Object to a New Window
How To Pass an XPCOM Object to a New Window
Slug:
How_To_Pass_an_XPCOM_Object_to_a_New_Window
How_To_Pass_an_XPCOM_Object_to_a_New_Window
Tags:
NeedsHelp, NeedsExample, "MDC Project"
NeedsHelp, NeedsExample, "MDC Project"
Content:

Revision 178155
Revision 178156
n14this.ww = n14var ww = 
n18this.win = this.ww.openWindow(null,n18var win = ww.openWindow(null,
n20      "debug history", "chrome,centerscreen,resizable", this);n20      "debug history", "chrome,centerscreen,resizable", myObject)
 >;
t23      Note in this example that <code>this</code> is passed to tht23      Note in this example that <code>myObject</code> is passed t
>e <code>openWindow()</code> method; you can pass any XPCOM object>o the <code>openWindow()</code> method; you can pass any XPCOM ob
> (or any other value, for that matter) in this way. To access the>ject (or any other value, for that matter) in this way. To access
> XPCOM object from the window's code, you can access the <code>wi> the XPCOM object from the window's code, you can access the <cod
>ndow.arguments[]</code> array, as shown in the example below:>e>window.arguments[]</code> array, as shown in the example below:

Back to History