Hi ,
In my application I need reference of mozilla window from nsiHTTPChannel
object. For that I am using following piece of code.
I do get reference of mozilla window and then I can access document object
from this window. Now my problem is that, if channel
correspond to frame request then also I get the reference of top window
object. And I endup with top level document object. But
I need document object of frame's request.
How can I get document object of frame's request? Do mozilla have frame
window(pane in window) concept. Is there any way to get
reference of frame window. Can I change something in following piece of code
to get the reference of frame window.
<CODE>
var ir = /* nsIInterfaceRequestor */ channel.notificationCallbacks;
var docshell = /* nsIDocShell */
ir.getInterface(Components.interfaces.nsIDocShell);
chromeWindow =
docshell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIWebNavigation).
QueryInterface(Components.interfaces.nsIDocShellTreeItem).
rootTreeItem.
QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindow);
</CODE>
Thanks,
Hitesh.
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network