Comments on: Backwards compatible window.postMessage() https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/ building stuff on the web with Josh Fraser Thu, 20 Jul 2017 03:20:00 +0000 hourly 1 By: Tuấn Cầu Rào https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-74661 Thu, 20 Jul 2017 03:20:00 +0000 https://onlineaspect.com/?p=619#comment-74661 Thanks

]]>
By: jerryperes https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-74651 Sat, 17 Jun 2017 07:32:00 +0000 https://onlineaspect.com/?p=619#comment-74651 Awesome and simple work. Thank you sharing.

]]>
By: Jamil https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-74561 Wed, 13 Jul 2016 17:13:00 +0000 https://onlineaspect.com/?p=619#comment-74561 The barebones example appears to be broken. I see a 404 inside the iFrame.

]]>
By: Kar https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-73251 Mon, 23 Mar 2015 12:32:39 +0000 https://onlineaspect.com/?p=619#comment-73251 In reply to Josh Fraser.

Is there any solution for this issue?

]]>
By: Krishna https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-71301 Wed, 17 Dec 2014 12:09:05 +0000 https://onlineaspect.com/?p=619#comment-71301 Hi,

There is some issue in Firefox 34, when execute given statement
target['postMessage'](message, target_url.replace( /([^:]+://[^/]+).*/, '$1'));

Error comes "DataCloneError: The object could not be cloned."

]]>
By: sep https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-55741 Sun, 31 Aug 2014 06:01:46 +0000 https://onlineaspect.com/?p=619#comment-55741 This library works fine in all browsers except Firefox version 31. The whole page starts jumping, I noticed that the issue
is caused by the iframe src like:
src = 'http://joshfraser.com/code/postmessage/child.html#' + encodeURIComponent(document.location.href);

what is your advice to fix this issue.I have used this library for different customers and they are complaining that they are not able to use Firefox.

Thanks,

]]>
By: JK. https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-47311 Sun, 10 Aug 2014 22:57:29 +0000 https://onlineaspect.com/?p=619#comment-47311 Hi Josh, why do you check for window['postMessage'] but then call target['postMessage'] instead? It looks like a bug, shouldnt you be checking for target['postMessage']?

You've got this:

if (window['postMessage']) {
// the browser supports window.postMessage, so call it with a targetOrigin
// set appropriately, based on the target_url parameter.
target['postMessage'](message, target_url.replace( /([^:]+://[^/]+).*/, '$1'));
}

Shouldn't it be this?

if (target['postMessage']) {
// the browser supports window.postMessage, so call it with a targetOrigin
// set appropriately, based on the target_url parameter.
target['postMessage'](message, target_url.replace( /([^:]+://[^/]+).*/, '$1'));
}

]]>
By: beautyaboveus https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-45961 Sun, 29 Jun 2014 10:58:36 +0000 https://onlineaspect.com/?p=619#comment-45961 In reply to okinsey.

I am confused. The stackoverflow guys sent me here saying that this solution is good. Here when I read the comments I found this technique is not stable. So what should I use? EasyXDM or this one??

]]>
By: rich4hacker https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-5246 Wed, 20 Mar 2013 08:40:52 +0000 https://onlineaspect.com/?p=619#comment-5246 OH! Good http://www.hack-fb-online.com

]]>
By: rich4hacker https://onlineaspect.com/2010/01/15/backwards-compatible-postmessage/comment-page-1/#comment-5232 Tue, 19 Mar 2013 15:34:18 +0000 https://onlineaspect.com/?p=619#comment-5232 Nice post!
hack facebook password online http://www.hackfacebookpd.com

]]>