Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10210 closed enhancement (wontfix)

Open Dialog in parent from within Frame/IFrame

Reported by: Josh Trutwin Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.4.0b
Keywords: Cc:
Blocked By: Blocking:


I'm not sure if this is possible or not. When you create a Dialog inside a frame/iframe it's boundary is constrained to the frame's instead of the main/parent document which can be problematic if your iframe is very small or off to one side of the document.

Wondering if it is at all feasible to have something like this to fix?

<div dojoType="dijit.Dialog" target="_parent" ... />

Change History (2)

comment:1 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

I can see why you would want this. Unfortunately I don't think there's anyway to do it.

I assume you mean that dojo is loaded into the iframe but you want to affect the main window? iframe's are specifically designed to prevent iframes from accessing the main window, and I don't see any workaround to that.

Maybe something really fancy where dojo is loaded into the main window too and polls the iframe for messages, etc, but that's to complicated to build into a widget.

comment:2 Changed 12 years ago by Josh Trutwin

Yeah - it was a situation where dojo was loaded in an iframe - we have an application where I cannot use dojo in the main window due to IE Operation Aborted errors with a conflicting JS lib (openX) - went so far as to have sfoster try to dig into it - couldn't figure out a way to make the two work happily together so used iframes, but made all the dialogs (and tooltips) in the app pretty much useless due to their positions and frame constraints. I have successfully opened Dialogs from within frames/iframes if dojo is in the parent window, but that will not work in this situation.

If it can't be done - it can't be done - thanks for the info...

Note: See TracTickets for help on using tickets.