Hi, I have tried finding the answer to this and come across several things which have not yielded the desired result.
So I wrote a HTML Helper that loads in an (fancybox) iFrame:
<%= Html.ActionFrame("Projects", "Edit") %>
The resulting page has a save button which currently saves the data and redirects to the Index page within the iFrame. As the action goes:
if (ModelState.IsValid)
{
projectRepository.saveProject(record);
return RedirectToAction("Index");
}
But what I want to be able to do is that upon clicking the save the iFrame would close as well as saving the data.
I came across this, which is something similar that I would like to be able to do for the iFrames, it would make converting the current actions simpler.
Thanks in advance!