Copied to clipboard

Flag this post as spam?

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


  • Christoffer Andersen 23 posts 53 karma points
    Mar 08, 2010 @ 13:26
    Christoffer Andersen
    0

    umbraco popUp

    Greetings

    Upon using umbraco's openmodal within a javascript eg:delayMail.Attributes.Add("onclick", @"top.openModal('plugins/DelaySend.aspx', 'Send delayed mail', 210,500);");

    Is there any way for the newly opened window to either return some values to the site from where the modal was launched or alternativly run a method from that site?

     

    With kind regards

     

    Christoffer Andersen

     

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Mar 08, 2010 @ 22:50
    Aaron Powell
    0

    window.opener will return you the opener IIRC. Then you can invoke functions on it eg:

    window.opener.someFunction();
  • Christoffer Andersen 23 posts 53 karma points
    Mar 08, 2010 @ 22:56
    Christoffer Andersen
    0

    hmm in order to acces window functions in an aspx file which libaries do you need to reference or does it need to be run through a js?

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Mar 09, 2010 @ 18:37
    Peter Duncanson
    0

    slaces code is for JS client side. You could have whatever code you like in the popup and it would be able to call functions in the parent (opening) window.

Please Sign in or register to post replies

Write your reply to:

Draft