Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marc-Anthony Taylor 55 posts 68 karma points
    Dec 18, 2012 @ 11:07
    Marc-Anthony Taylor
    0

    Modal window won't close

    I have tried adding a "literal" with some javascript but to no avail. At the moment my code looks like this:

    if (cur != null)
                cur.ClientTools.ChangeContentFrameUrl(returnUrl).CloseModalWindow();
            closeModalJs.Text = "<script type=\"text/javascript\">\n UmbClientMgr.closeModalWindow()\n</script>";
  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Dec 19, 2012 @ 10:56
    Jeroen Breuer
    0

    For some examples you can have a look at the DAMP source code. Remember that UmbClientMgr.closeModalWindow() only works if your page (even an iframe) has the following masterpage:

    MasterPageFile="../../masterpages/umbracoDialog.Master"

    Jeroen

     

  • Marc-Anthony Taylor 55 posts 68 karma points
    Dec 19, 2012 @ 11:11
    Marc-Anthony Taylor
    0

    Thanks again! Tomorrow is the last day of my intern-ship so I really can't thank you enough!

  • Marc-Anthony Taylor 55 posts 68 karma points
    Dec 19, 2012 @ 11:44
    Marc-Anthony Taylor
    0

    Is there any way to close it without it inheriting from umbracoDialog?

  • Marc-Anthony Taylor 55 posts 68 karma points
    Dec 19, 2012 @ 13:26
    Marc-Anthony Taylor
    0

    Sorted it, thanks =D

  • 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.

Please Sign in or register to post replies