[Jslib] Pete Collins

Pete Collins pete at mozdevgroup.com
Thu Apr 19 05:07:10 PDT 2007


> This is the common paradigm with window.openDialog and window.open
> Usually you just create an object and pass it in and then access it 
> via window.arguments[0]
>
> If you can get any information would be great...


You should just be able to pass in any js object as js objects by 
default are considered type nsISupports which all interfaces inherit from.


var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
                     .getService(Components.interfaces.nsIWindowWatcher);

var params = new Object;

openWindow( refParent, strUrl, strWindowName, strWindowFeatures, params);


--pete

-- 
Pete Collins - Founder, Mozdev Group Inc.
www.mozdevgroup.com
Mozilla Software Development Solutions
tel: 1-719-302-5811
fax: 1-719-302-5813



More information about the Jslib mailing list