I have an iFrame which has a dijit.Dialog. Since this iframe is small in width and height, I was wondering if I could place this dialog in the parent window somehow.
I tried to do:
var parent_pane = parent.dijit.byId("testpane"); //testpane is in the parent window
dijit.byId("linkedResourcePopup").placeAt(parent_pane);
dijit.byId("linkedResourcePopup").show();
This gives me a javascript error in firebug:
_16c.appendChild is not a function
Is this possible.?
Thanks for any help.
You are getting this error because
parent.dijit.byId("testpane").appendChildis not a function.You need to pass a DOM node to
placeAt. You can access the parent widgets node viaparent_pane.domNode.