Closing a Modal Popup (I know sounds silly but please help)
Hello
Ok I'm really sorry if this is elsewhere but I can't find it.
I have just started at a new company (literally last week) that is using umbraco and I have needed to edit he backend.. I have created a new section in the admin section and I have added an umbraco modal popup using top.openmodal which is all working fine but I can't work out how to close it!
I also ideally need to call a function on the parent page and have fouind suggestions of using window.opener but this is not doing anything..
I've watched all the videos on Umbraco TV and think I saw reference to it in there but can't remember which video it was in, I have also looked through the wiki but can't seem to find it!
Can someone point me in the right direction as I'm going round in circles!
I am using umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657)
Closing a Modal Popup (I know sounds silly but please help)
Hello
Ok I'm really sorry if this is elsewhere but I can't find it.
I have just started at a new company (literally last week) that is using umbraco and I have needed to edit he backend..
I have created a new section in the admin section and I have added an umbraco modal popup using top.openmodal which is all working fine but I can't work out how to close it!
I also ideally need to call a function on the parent page and have fouind suggestions of using window.opener but this is not doing anything..
I've watched all the videos on Umbraco TV and think I saw reference to it in there but can't remember which video it was in, I have also looked through the wiki but can't seem to find it!
Can someone point me in the right direction as I'm going round in circles!
I am using umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657)
Thanks
Bex
Finally found how to do it..
In the bottom of my submit in the code side I have put
Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "refresh", "parent.document.getElementById('right').contentWindow.location.reload(true);top.closeModal();", True)
This refreshes the Iframe that my page is in and then closes the modal
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.