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?
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.
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
window.opener will return you the opener IIRC. Then you can invoke functions on it eg:
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?
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.
is working on a reply...