Alex Rivera | Logout

JQuery Modal Boxes and Iframe

Asked 2009-02-04T17:00:44.950
18

I've been using Simple Modal and i feel it doesn't live up to what i need at the moment.

Is there a Modal Box that supports loading external files and allows those external files to close the modal box and redirect the parent page to some url.

An example of what i want to do. You have a list of users, you could click "Add user" and a Modal Box with the form pops up, you fill that in and submit it. That would close the box and reload the user list page so you would see the user in the list.

Then you could click "Edit user" and a Modal Box with the user info filled in the form fields would pop up and you could edit, submit and it would close and refresh.

I know this can be done if i have the user info form as a hidden div for each user but this will not scale well and it is a lot of overhead data.

I found some code about this on Google Code but just can't get it to work (possibly different simple modal version

I am willing to change to another modal box tool also.

UPDATE:

Do either Thickbox or Fancybox support being closed from a child IFrame element?

Edit
Report

1 Answer

1

I have found the solution for me, it's using nyroModal. It supports iframes and closing of the modal through its iframe child with this code.

parent.$.nyroModalRemove();

I am going to accept Russ Cam's answer to give him more rep since his reply made me think a lot about how this is going to work and eventually made me find the answer.

answered 2009-02-05T09:42:36.860

Your Answer