Closed (fixed)
Project:
Modal Frame API
Version:
6.x-1.7
Component:
Miscellaneous
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2010 at 15:46 UTC
Updated:
24 Aug 2010 at 02:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
markus_petrux commentedRe: "Is it possible to trigger the child window to close and open a new modal frame when clicking a jquery selector?"
Yes, you can close the modal frame from javascript in the child window like this:
You can use the
argsargument to pass an arbitrary indicator for your implementation of the onSubmit callback of the parent modal frame to do what you need. And there you can, for example, do something like:----
Alternative that could be easier: When processing the event of your jQuery selector on the child window, when you need to load a different page on a modal frame and close the current one, you can simply reload the current one with a different URL:
Comment #2
Smudio commentedThanks so much, but I think I did not explain properly, what I'm trying to achieve.
There is a menu in the parent window. Every menu item opens in a modal frame. Is it possible to click another
menu item in the parent window once a child modal frame is loaded and thereby (click) open the other modal frame instead of the active one??
Hope this is clear enough...
attached is a screenshot: would it be possible to open "KUNDEN" now with its child modal frame, replacing the active one?
Comment #3
markus_petrux commentedModal implies the parent window is not reachable. This is a feature that is heavily tied to the way the Modal Frame is coded, because part of the job it does is related to control the focus.
I would suggest to write a menu inside the modal frame. See the "Search and reference" and "Create and reference" features of the Node Relationships module. Both options are implemented as tabs that are part of the child window in the modal frame.
Another possible alternative to your use case would be to use the jQuery UI Dialog plugin directly.
Comment #4
markus_petrux commented