Hello, I searched the whole evening for the best way to work with frames. Looking into the interfaces description at http://www.xulplanet.com/references/xpcomref/ifaces/nsIDOMWindow.html it seems that the nsIDOMWindow has a nsIDOMWindowCollection. Trying to get that with:
nsIDOMWindowCollection test = (nsIDOMWindowCollection)this.window.queryInterface(nsIDOMWindowCollection.NS_IDOMWINDOWCOLLECTION_IID); leads to an error: org.mozilla.xpcom.XPCOMException: The function "QueryInterface" returned an error condition (0x80004002) The other way of working with frames is to get the frames from a nsIDOMDocument via getElementsByTagName but with these nsIDOMHTMLFrameElement how can I get the nsIDOMWindow from a frame? I hope that somebody has a good suggestion. Regards Martin _______________________________________________ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom