Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 20, 2009 @ 17:25
    Jeroen Breuer
    0

    Umbraco pop-up

    Hello,

    I'm trying to create a datatype which uses the umbraco pop-up (like when using the content picker). In the pop-up I'd like to show an iframe. Does anybody know how I can call this pop-up in my code using javascript? I tried looking in the umbraco source code, but haven't found it yet.

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 20, 2009 @ 17:39
    Jeroen Breuer
    0

    I've already found the following:

    top.openModal(

    'developer/xslt/xsltVisualize.aspx', 'Visualize XSLT', 750, 550);

    This way the pop-up cant be moved. Is there a way it can be dragged around like when choosing an image in the RickTextEditor?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Oct 20, 2009 @ 18:29
    Morten Bock
    0

    I think the popup from the RTE is part of TinyMCE, so I'm not sure it is generally available. 

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 21, 2009 @ 08:50
    Jeroen Breuer
    0

    The pop-up in TinyMCE seems specialy designed for Umbraco because it also has the ability to add macro's for instance. It's propably a part of the Umbraco source code, but I didn't find it yet. Does anyone have an example?

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 23, 2009 @ 22:07
    Jeroen Breuer
    0

    Im still using the openModal function, but now I have another question. In the modal pop-up I'd like to call some javascript which is in my datatype. From the datatype I  can call the pop-up with top.

    openModal but how can I call the code in the datatype again. Something like this.opener.storedata(). Can I call a function on the page again with javascript?

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 23, 2009 @ 23:15
    Jeroen Breuer
    0

    Discovered it myself. It can be done by using "top.right.yourmethod". This way you can communicate with a datatype and the popup.

  • 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