diff --git a/source/Ox.UI/js/Core/Message.js b/source/Ox.UI/js/Core/Message.js index 5849cd83..24178e99 100644 --- a/source/Ox.UI/js/Core/Message.js +++ b/source/Ox.UI/js/Core/Message.js @@ -43,8 +43,8 @@ Ox.Message = (function() { @*/ that.post = function(target, event, data) { target = target == Ox.$parent ? window.parent - : Ox.isElement(target[0]) ? target[0] - : $('#' + target)[0]; + : Ox.isElement(target[0]) ? target[0].contentWindow + : $('#' + target)[0].contentWindow; target.postMessage(JSON.stringify({ event: event, data: data,